import { z } from 'zod';
import { type APIClient } from '@agentuity/api';
export declare const DbWALConnectionRequestSchema: z.ZodObject<{
    database: z.ZodString;
    orgId: z.ZodString;
    region: z.ZodString;
    enable: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
export declare const DbWALConnectionResponseSchema: z.ZodObject<{
    url: z.ZodString;
    username: z.ZodString;
    logical_replication_enabled: z.ZodBoolean;
    upstream_mode: z.ZodString;
    wal_marker: z.ZodString;
}, z.core.$strip>;
export declare const DbWALConnectionAPIResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    success: z.ZodLiteral<false>;
    message: z.ZodString;
    code: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    success: z.ZodLiteral<true>;
    data: z.ZodObject<{
        url: z.ZodString;
        username: z.ZodString;
        logical_replication_enabled: z.ZodBoolean;
        upstream_mode: z.ZodString;
        wal_marker: z.ZodString;
    }, z.core.$strip>;
}, z.core.$strip>], "success">;
type DbWALConnectionRequest = z.infer<typeof DbWALConnectionRequestSchema>;
export type DbWALConnection = z.infer<typeof DbWALConnectionResponseSchema>;
/**
 * Get a WAL/replication connection string for a managed Postgres database.
 *
 * Requires SDK key authentication (`sk_...` / `AGENTUITY_SDK_KEY`).
 * When `enable` is false or omitted and logical replication is not enabled, returns 412.
 */
export declare function dbWALConnection(client: APIClient, request: DbWALConnectionRequest): Promise<DbWALConnection>;
export {};
//# sourceMappingURL=wal-connection.d.ts.map