/** * Create an `h` function. * * @param {Schema} schema * Schema to use. * @param {string} defaultTagName * Default tag name. * @param {ReadonlyArray | undefined} [caseSensitive] * Case-sensitive tag names (default: `undefined`). * @returns * `h`. */ export function createH(schema: Schema, defaultTagName: string, caseSensitive?: ReadonlyArray | undefined): { /** * Hyperscript compatible DSL for creating virtual hast trees. * * @overload * @param {null | undefined} [selector] * Nothing to get a root. * @param {...Child} children * Children. * @returns {Root} * Root. * * @overload * @param {string} selector * Selector. * @param {Child | Properties} [properties] * Properties (or first child) (default: `undefined`). * @param {...Child} children * Children. * @returns {Element} * Element. * * @param {string | null | undefined} [selector] * Selector. * @param {Child | Properties} [properties] * Properties (or first child) (default: `undefined`). * @param {...Child} children * Children. * @returns {Result} * Result. */ (selector?: null | undefined, ...children: Child[]): Root; /** * Hyperscript compatible DSL for creating virtual hast trees. * * @overload * @param {null | undefined} [selector] * Nothing to get a root. * @param {...Child} children * Children. * @returns {Root} * Root. * * @overload * @param {string} selector * Selector. * @param {Child | Properties} [properties] * Properties (or first child) (default: `undefined`). * @param {...Child} children * Children. * @returns {Element} * Element. * * @param {string | null | undefined} [selector] * Selector. * @param {Child | Properties} [properties] * Properties (or first child) (default: `undefined`). * @param {...Child} children * Children. * @returns {Result} * Result. */ (selector: string, properties?: Child | Properties, ...children: Child[]): Element; }; /** * List of children (deep). */ export type ArrayChildNested = Array; /** * List of children. */ export type ArrayChild = Array; /** * List of property values for space- or comma separated values (such as `className`). */ export type ArrayValue = Array; /** * Acceptable child value. */ export type Child = ArrayChild | Nodes | PrimitiveChild; /** * Primitive children, either ignored (nullish), or turned into text nodes. */ export type PrimitiveChild = number | string | null | undefined; /** * Primitive property value. */ export type PrimitiveValue = boolean | number | string | null | undefined; /** * Acceptable value for element properties. */ export type Properties = Record; /** * Primitive value or list value. */ export type PropertyValue = ArrayValue | PrimitiveValue; /** * Result from a `h` (or `s`) call. */ export type Result = Element | Root; /** * Value for a CSS style field. */ export type StyleValue = number | string; /** * Supported value of a `style` prop. */ export type Style = Record; import type { Schema } from 'property-information'; import type { Root } from 'hast'; import type { Element } from 'hast'; import type { Nodes } from 'hast'; //# sourceMappingURL=create-h.d.ts.map