import type { TypeSafeOptions } from "pi-typesafe"; /** The judgment backend that receives pi-warden's Jev requests. */ export type JudgmentBackend = "typesafe" | "openrouter"; /** The host the consent disclosure names as the destination. */ export declare function backendHost(backend: JudgmentBackend): string; /** Adapt the consent text to the active backend by substituting the destination host. */ export declare function disclosureFor(backend: JudgmentBackend, disclosure: string): string; /** * Whether the right credential exists for the chosen backend. * TypeSafe uses the pi-typesafe keystore; other backends use an environment variable. */ export declare function keyAvailable(backend: JudgmentBackend, env: Record, keystoreUsable: () => boolean): boolean; /** * Build the options forwarded to `createTypeSafe`. * The caller must gate on `keyAvailable` before calling `createTypeSafe`. */ export declare function judgeOptions(config: { maxRequests: number; timeoutMs: number; typesafeBackend: JudgmentBackend; }): TypeSafeOptions; /** Resolve the effective backend from a raw config value; invalid values fall back to "typesafe". */ export declare function resolveBackend(raw: unknown): JudgmentBackend;