//#region src/cli/commands/generate/seed/bundler.d.ts /** * Seed script bundler for TailorDB seed data * * Bundles seed scripts for server-side execution */ export type SeedBundleResult = { namespace: string; bundledCode: string; typesIncluded: string[]; }; /** * Result of bundling a seed dump script. */ export type SeedDumpBundleResult = { namespace: string; bundledCode: string; }; /** * Bundle a seed script for server-side execution * * Creates an entry that: * 1. Defines getDB() function inline * 2. Processes data in batches using Kysely * 3. Reports progress via console.log * 4. Exports main() as the server-side entry point * @param namespace - TailorDB namespace * @param tableNames - List of table names to include in the seed * @param baseDir - Directory whose dependencies and tsconfig the generated entry uses * @returns Bundled seed script result */ export declare function bundleSeedScript(namespace: string, tableNames: string[], baseDir?: string): Promise; /** * Bundle a seed dump script for server-side execution * * The read-only counterpart of the seed script: it selects one page of rows * from a single table ordered by id, so a caller can page through a table with * a keyset cursor instead of holding it all in one message. * @param namespace - TailorDB namespace * @param baseDir - Directory whose dependencies and tsconfig the generated entry uses * @returns Bundled seed dump script result */ export declare function bundleSeedDumpScript(namespace: string, baseDir?: string): Promise; //#endregion