///
import type { Node, Element, Text } from 'domhandler';
export declare function get_extnames(type: 'wx' | 'my'): {
js: string;
json: string;
xml: string;
css: string;
xs: string;
svg: string;
};
export declare function is_element(node: Node): node is Element;
export declare function is_text(node: Node): node is Text;
export declare function assert_file(file_contents: Record, file: string, type: string): string;
export declare function get_source_tags(type: 'wx' | 'my'): Record;
export declare function xml2json(source: string): Node[];
export declare function correct_path(apath: string, ext?: string): string;
export declare function resolve_path(apath: string, dir: string, cwd: string): string;
export declare function relative_path(from: string, to: string): string;
export declare function search(pattern: string, cwd: string): Promise;
export declare function id_generator(): string;
export declare function tag_generator(id: string, regen?: boolean): string;
/**
*
* @param files
* @returns
*/
export declare function rename_files(files: string[]): Record;
export declare function generator_generator(chars: string, idempotent?: false): () => string;
export declare function generator_generator(chars: string, idempotent?: true): (source: string, regen?: boolean) => string;
/**
* 生成新的路径
* @param filename 文件名
* @param ref 引用的文件
* @param cwd cwd
* @param ext 文件后缀
* @returns
*/
export declare function get_new_path(filename: string, ref: string, old_new_map: Record, cwd: string, ext?: string, optimize?: boolean): string;
export declare function rename_tag(content: string, old_new_map: Record): string;
export declare function get_all_tag(content: string): string[];