import type { ParsedEnumValuesMap } from './types'; export type ImportDeclaration = { outputPath: string; importSource: ImportSource; baseOutputDir: string; baseDir: string; typesImport: boolean; emitLegacyCommonJSImports?: boolean; importExtension: '' | `.${string}`; }; export type ImportSource = { /** * Source path, relative to the `baseOutputDir` */ path: string; /** * Namespace to import source as */ namespace?: string | null; /** * Entity names to import */ identifiers?: T[]; }; export type FragmentImport = { name: string; kind: 'type' | 'document'; }; export declare function generateFragmentImportStatement(statement: ImportDeclaration, kind: 'type' | 'document' | 'both'): string; export declare function generateImportStatement(statement: ImportDeclaration): string; export declare function resolveRelativeImport(from: string, to: string): string; export declare function resolveImportSource(source: string | ImportSource): ImportSource; export declare function clearExtension(path: string): string; export declare function fixLocalFilePath(path: string): string; export declare function getEnumsImports({ enumValues, useTypeImports, }: { enumValues: ParsedEnumValuesMap; useTypeImports: boolean; }): string[]; export declare function buildTypeImport({ identifier, source, useTypeImports, asDefault, }: { identifier: string | null | undefined; source: string | null | undefined; useTypeImports: boolean; asDefault?: boolean; }): string;