/** * @octomil/browser — Routing policy validation * * Validates routing policy names and rejects policies that require local * execution, which the browser SDK cannot provide. */ import { type RoutingPolicyName } from "./types.js"; /** * Validate that a routing policy name is one of the six canonical values. * * Throws `OctomilError` with code `POLICY_DENIED` for unknown policies * (e.g. the retired `quality_first`). * * @returns The validated policy name, narrowed to `RoutingPolicyName`. */ export declare function validateRoutingPolicy(policy: string): RoutingPolicyName; /** * Assert that a routing policy is compatible with the browser SDK. * * The browser SDK runs in a hosted/cloud environment and cannot perform * local model execution. Policies that require local-only execution * (`private`, `local_only`) are rejected with a clear error. * * Throws `OctomilError` with code `POLICY_DENIED` if the policy requires * local execution. * * @returns The validated policy name. */ export declare function assertBrowserCompatiblePolicy(policy: string): RoutingPolicyName; //# sourceMappingURL=validation.d.ts.map