import { SwcAppInterface, HostSet, HelperSet, HelperHostSet } from '../types'; import { ExpressionResult } from '@dooboostore/core'; import { Router } from "@dooboostore/core-web"; export declare const SWC_NOT_FOUND: unique symbol; export declare const html: (str: string, document: Document) => ChildNode[]; export declare const htmlFragment: (html: string | Node | Node[], doc: Document) => DocumentFragment; export declare const textNode: (text: string | any, doc?: Document) => Text; export declare const commentNode: (comment: string | any, doc?: Document) => Comment; export type CreateElementConfig = { innerHtml?: string; property?: Record; attrs?: Record; }; export declare const createElement: (documentOrWindow: Document | Window, tagName: string, options?: CreateElementConfig) => T; export declare const htmlDivElement: (html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLDivElement; export declare const htmlSpanElement: (html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLSpanElement; export declare const htmlButtonElement: (html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLButtonElement; export declare const htmlUlElement: (options?: { doc?: Document; attrs?: Record; }) => HTMLUListElement; export declare const htmlLiElement: (html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLLIElement; export declare const htmlAElement: (html: string, options?: { href?: string; doc?: Document; attrs?: Record; }) => HTMLAnchorElement; export declare const htmlPElement: (html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLParagraphElement; export declare const htmlHeadingElement: (level: 1 | 2 | 3 | 4 | 5 | 6, html: string, options?: { doc?: Document; attrs?: Record; }) => HTMLHeadingElement; export declare const htmlSectionElement: (options?: { doc?: Document; attrs?: Record; }) => HTMLElement; export declare const htmlArticleElement: (options?: { doc?: Document; attrs?: Record; }) => HTMLElement; export declare namespace SwcUtils { const getParentContainer: (e: Node) => any; const parsePathPatternsSetAttributeString: (pathPattern: string[], path: string) => string; const parsePathPatternsSet: (pathPattern: string[], urlAndRouter?: string | Router) => { path: string; searchParams: URLSearchParams; pathData: { [key: string]: string; }; }; const parsePathPatterns: (pathPattern: string[], path: string) => { [key: string]: string; }; const getHelperSet: (win: Window) => HelperSet; const getHelperAndHostSet: (win: Window, el: HTMLElement) => HelperHostSet; const getValueByPath: (obj: any, path: string, rootName: string) => any; /** * Finds the nearest logical SWC host for an element. * Checks __swc_host property first, then climbs the DOM tree. */ const findNearestSwcHostIncludingSelf: (el: HTMLElement | Node) => HTMLElement | undefined; /** * Returns all SWC ancestors (excluding self) in [root, ..., parent] order. */ const findAllSwcHostsIncludingSelf: (el: HTMLElement | Node) => HTMLElement[]; const getHosts: (el: HTMLElement) => HTMLElement[]; const getHost: (el: HTMLElement) => HTMLElement | undefined; function projectProcessHtml(id: string, htmlOrNode: string, document: Document): string; function projectProcessHtml(id: string, htmlOrNode: ((Node)[]) | Node, document: Document): (Node)[]; function processHtml(id: string, html: string, config: { document: Document; replaceWrap: { start: string | RegExp; end: string | RegExp; }; replacer: (id: string, script: string, er: ExpressionResult) => string; }): string; const getAppHosts: (el: HTMLElement) => SwcAppInterface[]; const getAppHost: (el: HTMLElement) => SwcAppInterface | undefined; /** * Find the closest app host by traversing DOM tree directly, including the element itself. * Only checks tagName and is attribute - no SWC host discovery. * Useful for Safari polyfill compatibility where is="" elements upgrade in child-first order. */ const findAppHostIncludingSelfDirect: (el: HTMLElement) => SwcAppInterface | null; /** * Find all app hosts by traversing DOM tree directly, including the element itself. * Returns array of all app hosts in [root, ..., closest-parent-or-self] order. * Only checks tagName and is attribute - no SWC host discovery. * Useful for Safari polyfill compatibility where is="" elements upgrade in child-first order. */ const findAllAppHostsIncludingSelfDirect: (el: HTMLElement) => SwcAppInterface[]; const getHostSet: (el: HTMLElement) => HostSet; const parsePathPattern: (pattern: string | undefined, currentPath: string) => { [key: string]: string; } | null; } //# sourceMappingURL=Utils.d.ts.map