/** * @param {OastNodes} tree * @param {Partial | null | undefined} [options = {}] */ export function createState(tree: OastNodes, options?: Partial | null | undefined): { one: (node: OastNodes, parent?: OastParent | undefined) => HastRoot | HastElementContent | HastElementContent[] | undefined; ids: { byNode: Map; byText: Map; }; all: (parent: OastNodes) => Array; handlers: Partial>; getAttrHtml: (node: OastNodes) => Record | undefined; patch: (from: OastNodes, to: T) => T; options: Config; }; export type HastNodes = import("hast").Nodes; export type OastParent = import("orga").Parent; export type OastNodes = import("orga").Nodes; export type Config = { handlers: Handlers; linkTarget: string; linkHref: (link: import("orga").Link) => string; /** * =[] */ selectTags: string[]; /** * =['noexport'] */ excludeTags: string[]; }; export type State = ReturnType; export type Handler = (state: State, node: any, parent: OastParent | undefined) => Array | HastElementContent | HastRoot | undefined; /** * Handle nodes. */ export type Handlers = Partial>; import type { Root as HastRoot } from 'hast'; import type { ElementContent as HastElementContent } from 'hast'; //# sourceMappingURL=state.d.ts.map