/*! * Copyright 2019 acrazing . All rights reserved. * @since 2019-07-17 18:45:32 */ import { DependencyTree, ParseOptions } from './types'; export declare const defaultOptions: ParseOptions; export declare function normalizeOptions(options: Partial): ParseOptions; export declare function appendSuffix(request: string, extensions: string[]): Promise; export type Resolver = (context: string, request: string, extensions: string[]) => Promise; export declare const simpleResolver: Resolver; export declare function shortenTree(context: string, tree: DependencyTree): DependencyTree; export declare function parseCircular(tree: DependencyTree, skipDynamicImports?: boolean): string[][]; export declare function parseDependents(tree: DependencyTree): Record; export declare function parseWarnings(tree: DependencyTree, dependents?: Record): string[]; export declare function prettyTree(tree: DependencyTree, entries: string[], prefix?: string): string; export declare function prettyCircular(circulars: string[][], prefix?: string): string; export declare function prettyWarning(warnings: string[], prefix?: string): string; export declare function isEmpty(v: unknown): boolean;