/** * @since 0.0.1 */ import type { SelectContext } from '../../Select' import type { Token } from '../Html/Tokenizer' import type { TagForest } from './TagForest' import type { TagInfo } from './TagInfo' import * as F from './TagForest' /** * Represents a structure containing the parsed token information, the * hierarchy of the document, and the context of the selection. * * @category model * @since 0.0.1 */ export interface TagSpec { readonly context: SelectContext readonly hierarchy: TagForest readonly tags: ReadonlyArray } /** * @category constructors * @since 0.0.1 */ export declare const TagSpec: ( context: SelectContext, hierarchy: import('fp-ts/lib/Tree').Forest, tags: ReadonlyArray ) => TagSpec /** * Constructs a `TagSpec` from a stream of tokens parsed by the HTML parser. * * @category constructors * @since 0.0.1 */ export declare const tagsToSpec: (tokens: ReadonlyArray) => TagSpec