/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { parseSelector } from './parseCss.js'; import { selAny, selComment, selTag, selText } from './sel.js'; /** * Combinator-and-parser-based builder for {@link CompiledSelector}s. The * runtime shape returned by these factory methods is opaque; consumers * should never inspect or construct selector objects directly. * * @experimental * @lexical-pure-namespace */ export declare const sel: { /** Match any {@link HTMLElement}. */ readonly any: typeof selAny; /** Match DOM {@link Comment} nodes. */ readonly comment: typeof selComment; /** * Parse a reduced CSS-selector subset and return a builder you can chain * combinator methods off of. */ readonly css: typeof parseSelector; /** * Match by tag name(s). With one literal tag the element type is narrowed * (e.g. `'a' → HTMLAnchorElement`); with multiple, it is the union of * their `HTMLElementTagNameMap` entries. */ readonly tag: typeof selTag; /** Match DOM {@link Text} nodes. */ readonly text: typeof selText; }; export { CoreImportExtension } from './CoreImportExtension.js'; export { CoreImportRules } from './coreImportRules.js'; export { defineImportRule } from './defineImportRule.js'; export { type CompiledOverlayRules, defineOverlayRules, type DOMImportRuleEntry, } from './defineOverlayRules.js'; export { $generateNodesFromDOMViaExtension, type DOMImportConfig, DOMImportExtension, } from './DOMImportExtension.js'; export { HorizontalRuleImportExtension, HorizontalRuleImportRules, } from './HorizontalRuleImportExtension.js'; export { $getImportContextValue, $withImportContext, createImportState, defaultIsInline, defaultPreservesWhitespace, ImportOverlays, ImportSource, ImportSourceDataTransfer, type ImportSourceKind, ImportTextFormat, ImportTextStyle, ImportWhitespaceConfig, type IsInlineForWhitespace, type IsPreserveWhitespaceDom, type WhitespaceImportConfig, } from './ImportContext.js'; export { $inlineStylesFromStyleSheets } from './inlineStylesFromStyleSheets.js'; export { parseSelector } from './parseCss.js'; export { $distributeInlineWrapper, $isBlockLevel, $propagateTextAlignToBlockChildren, BlockSchema, InlineSchema, NestedBlockSchema, RootSchema, } from './schemas.js'; export { isElementOfTag } from './sel.js'; export type { AnyDOMImportRule, AttrMatchOptions, CapturesOfSelector, ChildSchema, CompiledSelector, DOMImportContext, DOMImportExtensionOutput, DOMImportFn, DOMImportRule, DOMPreprocessContext, DOMPreprocessFn, ElementSelectorBuilder, GenerateNodesFromDOMOptions, ImportChildrenOpts, ImportContextPairOrUpdater, ImportNodeOpts, ImportSession, ImportStateConfig, NodeOfSelector, StyleMatchOptions, } from './types.js';