import type { Transport } from './transport'; /** * Body for the fail-closed jq guard (POST `/api/auth/validate-condition`). The guard * compile-checks the inline jq `condition` the author typed. `sample_context` is a * `JqAuthContext`-shaped sample; when present the guard also evaluates the condition * against it and returns the boolean `result` (else `result` is `null`). */ export interface ValidateConditionBody { readonly condition?: string; readonly sample_context?: Record; } export declare function policyClient(t: Transport): { validateCondition: (body: ValidateConditionBody) => Promise<{ ok: boolean; result: boolean | null; }>; listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{ version: number; body: { condition: { content?: string | undefined; id?: string | undefined; kwargs?: Record | undefined; } | null; policy_data: Record; scopes: string[]; }; tags: string[]; created_at: string; is_current: boolean; }[]>; rollbackPolicy: (userId: string, version: number) => Promise<{ user_id: string; active_version: number; }>; }; //# sourceMappingURL=policy-client.d.ts.map