import type { PoolQueryClient } from "../../generated/storage-kit/query.js"; declare const BUNDLE_SCHEMA = "open-loops.tenant-backfill/v1"; export interface TenantBackfillBundle { schema: typeof BUNDLE_SCHEMA; tenants: Array<{ id: string; slug: string; name: string; status: "active" | "suspended"; }>; principals: Array<{ id: string; kind: "human" | "service" | "machine"; displayName: string; status: "active" | "suspended"; }>; memberships: Array<{ tenantId: string; principalId: string; status: "active" | "suspended"; roles: string[]; }>; keyBindings: Array<{ kid: string; tenantId: string; principalId: string; tokenKind: "api_key" | "service" | "machine"; }>; rowAssignments: Array<{ table: string; rowId: string; tenantId: string; }>; } export declare function parseTenantBackfillBundle(value: unknown): TenantBackfillBundle; export declare function loadTenantBackfillBundle(client: PoolQueryClient, bundle: TenantBackfillBundle): Promise<{ digest: string; assignments: number; }>; export {};