import type { Canonical } from "./extractor/index.ts"; import type { FunctionReturnType } from "./extractor/index.ts"; import type { allowed_kind_names, FolderStructure } from "./types.ts"; export interface ImportIdentifier { name: string; alias?: string; typeOnly?: boolean; } type Supported = { [key in allowed_kind_names]: T extends { kind: key; } ? T : never; }[allowed_kind_names]; export declare class Import { from: string | ((files: FolderStructure) => string); namedImports?: (string | ImportIdentifier)[]; star?: string; default?: string; typeOnly?: boolean; constructor(args: { from: string | ((files: FolderStructure) => string); namedImports?: (string | ImportIdentifier)[]; star?: string; default?: string; typeOnly?: boolean; }); static fromInternal(opts: { source: string; type: Supported; withName?: string; typeOnly?: boolean; }): Import; } export declare class ImportList { imports: Import[]; constructor(imports?: Import[]); static merge(lists: ImportList[]): ImportList; add(item: Import): void; stringify(files: FolderStructure): string; } export {};