/** * `manifest db init` — apply or print the Postgres adapter schemas shipped * with `@angriff36/manifest` (approval, audit, outbox, jobs, idempotency, * rate-limit). * * Default is print-only (safe). Pass `--apply` with `DATABASE_URL` (or * `--database-url`) to execute against Postgres via optional peer `pg`. */ export interface DbSchemaSpec { id: string; /** Path relative to the `@angriff36/manifest` package root. */ rel: string; } /** Canonical adapter schemas shipped in the npm package `files` list. */ export declare const MANIFEST_DB_SCHEMAS: readonly DbSchemaSpec[]; export interface DbInitOptions { /** Execute SQL against Postgres (requires `pg` + connection string). */ apply?: boolean; /** Connection string; falls back to process.env.DATABASE_URL. */ databaseUrl?: string; /** Preview file/DB writes without applying them. */ dryRun?: boolean; /** Write concatenated SQL to this path instead of stdout. */ out?: string; /** Only list schema ids and resolved paths. */ list?: boolean; /** Comma-separated schema ids to include (default: all). */ only?: string; /** Injected for tests — override package-root resolution. */ packageRoot?: string; /** Injected for tests — override SQL apply. */ applySql?: (sql: string, databaseUrl: string) => Promise; } export interface ResolvedSchema { id: string; rel: string; absolutePath: string; sql: string; } export declare function resolveManifestPackageRoot(override?: string): string; export declare function resolveDbSchemas(packageRoot: string, only?: string): ResolvedSchema[]; export declare function concatenateSchemas(schemas: ResolvedSchema[]): string; /** * Core `manifest db init` implementation. Returns exit code 0 on success. */ export declare function dbInitCommand(options?: DbInitOptions): Promise; //# sourceMappingURL=db-init.d.ts.map