/** * Client file generator * Generates a typed tinybird.ts client file from discovered entities */ import type { LoadedEntities } from "./loader.js"; /** * Options for generating the client file */ export interface GenerateClientOptions { /** Loaded entities from source files */ entities: LoadedEntities; /** Output file path (relative to cwd) */ outputPath: string; /** Working directory */ cwd: string; } /** * Result of generating the client file */ export interface GeneratedClient { /** The generated file content */ content: string; /** Absolute path to output file */ absolutePath: string; } /** * Generate the client file content * * @param options - Generation options * @returns Generated client file info * * @example * ```ts * const result = generateClientFile({ * entities: loadedEntities, * outputPath: 'src/tinybird.ts', * cwd: '/path/to/project', * }); * * fs.writeFileSync(result.absolutePath, result.content); * ``` */ export declare function generateClientFile(options: GenerateClientOptions): GeneratedClient; //# sourceMappingURL=client.d.ts.map