/** * 该文件可能会以字符串形式直接输出到产物中 * 因此不能引用外部模块,会因找不到外部模块报错 */ import type { Component, ComponentClazz } from 'san'; export interface Context { parentCtx?: Context; instance: any; } declare function escapeHTML(source: any): any; declare function output(value: any, needEscape: boolean): any; declare function classFilter(source: string | string[]): string; declare function styleFilter(source: object | string): string | object; declare function xclassFilter(inherits: string | string[], own: string): string; declare function xstyleFilter(inherits: object | string, own: string): string | object; declare function attrFilter(name: string, value: string | number | boolean, needEscape: boolean): string; declare function boolAttrFilter(name: string, value: string | number | boolean): string; declare function callFilter(ctx: Context, name: string, ...args: any[]): any; declare function callComputed(ctx: Context, name: string): any; declare function iterate(val: any[] | object): [string, any][] | ArrayIterator<[number, any]>; declare function createFromPrototype(proto: object): any; declare function createInstanceFromClass(Clazz: ComponentClazz): Component<{}>; declare function getRootCtx(ctx: T): T; declare function handleError(e: Error, instance: Component<{}>, info: string): void; declare function mergeChildSlots(childSlots: { [name: string]: Function; }): { named: { [name: string]: boolean; }; noname: boolean; }; export declare const _: { output: typeof output; createInstanceFromClass: typeof createInstanceFromClass; escapeHTML: typeof escapeHTML; boolAttrFilter: typeof boolAttrFilter; attrFilter: typeof attrFilter; classFilter: typeof classFilter; styleFilter: typeof styleFilter; xstyleFilter: typeof xstyleFilter; xclassFilter: typeof xclassFilter; createFromPrototype: typeof createFromPrototype; getRootCtx: typeof getRootCtx; iterate: typeof iterate; callFilter: typeof callFilter; callComputed: typeof callComputed; handleError: typeof handleError; mergeChildSlots: typeof mergeChildSlots; }; export {};