export declare const resolveRouter: (router: string, options: TQueryOptions) => string;
export declare const resolveAlias: (router: string, map: Record<string, string>) => string;
export declare const resolveDependRouter: (sourceFile: string, router: string, options: TQueryOptions) => string;
export type TQueryOptions = {
    alias?: Record<string, string>;
    extensions?: string[];
};
export declare const cleanUpSurroundPath: (p: string) => string;
export declare const createQueryDepends: (queryRelations: (code: string, file: string) => string[]) => (router: string, options?: TQueryOptions) => string[];
export type TDependItem = {
    file: string;
    exists: boolean;
    router: string;
    type: string;
    depends: TDependItem[];
};
export declare const createQueryDependsMap: (queryRelations: (code: string, file: string) => string[]) => (router: string, options?: TQueryOptions) => TDependItem;
/**
 * 节点位置状态：
 * - 0: 所在队列元素数多于1个，且本身位于第一；
 * - 1: 所在队列元素数多于1个，且本身不是第一也不是最后；
 * - 2: 所在队列元素数多于1个，且本身位于最后；
 * - 3: 所在队列元素只有1个
 */
type TDependItemTraverseCallbackStatus = 0 | 1 | 2 | 3;
type TDependItemTraverseCallback = (item: TDependItem, depth: number, status: TDependItemTraverseCallbackStatus) => void;
export declare const traverse: (item: TDependItem, callback: TDependItemTraverseCallback) => void;
type TMinipProjectConfig = {
    appid: string;
    miniprogramRoot?: string;
};
export declare const getMinipProjectConfig: (rootDir: string) => TMinipProjectConfig;
type TMinipApp = {
    pages: string[];
    subPackages?: {
        root: string;
        pages: string[];
    }[];
    resolveAlias?: Record<string, string>;
};
export declare const getMinipAppConfig: (rootDir: string) => {
    root: string;
    app: TMinipApp;
};
export declare const parseMinipAppAlias: (rootDir: string) => Record<string, string>;
export {};
