import { CodeBlock } from '../code-block.js'; /** * TsFile * * A class representing a TypeScript source file, managing its imports, exports, and content. */ export declare class TsFile { readonly filename: string; /** The directory name of the file. */ readonly dirname: string; /** Map of imports where key is the module path. */ imports: Record; /** Map of exports where key is the module path. */ exportFiles: Record; /** List of types to be exported. */ exportTypes: string[]; /** The code block representing the file's content. */ code: CodeBlock; /** * Initializes a new TsFile instance. * * @param filename - The name of the file. */ constructor(filename: string); /** * Adds an import statement to the file. * * @param filename - The module to import from. * @param items - The specific items to import. * @param typeImport - Whether it is a type-only import. */ addImport(filename: string, items?: string[], typeImport?: boolean): void; /** * Adds an export statement to the file. * * @param filename - The module to export from. * @param types - The specific items to export. * @param namespace - The namespace to export as. */ addExport(filename: string, types?: string[], namespace?: string): void; /** * Generates the file content as a string. * * @param options - Generation options. * @returns The generated TypeScript code. */ generate(options?: { importExt?: boolean; }): string; }