export declare const ANTHROPIC_V1_ENVIRONMENTS_ENDPOINT: "/v1/environments";
export type AnthropicV1EnvironmentsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type AnthropicV1EnvironmentsGate = {
    accepted: boolean;
    reason?: string;
};
export type AnthropicV1EnvironmentsRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type AnthropicV1EnvironmentsAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type AnthropicV1EnvironmentsRequestEnvelope = {
    provider: "anthropic";
    apiVersion: "v1";
    endpoint: typeof ANTHROPIC_V1_ENVIRONMENTS_ENDPOINT;
    operation: string;
    method: AnthropicV1EnvironmentsMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<AnthropicV1EnvironmentsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type AnthropicV1EnvironmentsProviderCaller = (envelope: AnthropicV1EnvironmentsRequestEnvelope) => unknown | Promise<unknown>;
export type AnthropicV1EnvironmentsInvocationRequest = {
    operation?: string;
    method?: AnthropicV1EnvironmentsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: AnthropicV1EnvironmentsAuthEnvelope;
    runtime?: AnthropicV1EnvironmentsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: AnthropicV1EnvironmentsGate;
    governance?: AnthropicV1EnvironmentsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: AnthropicV1EnvironmentsProviderCaller;
};
export type AnthropicV1EnvironmentsErrorCode = "MISSING_OPERATION" | "MISSING_RUNTIME_ID" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "AUTH_REJECTED" | "CALLER_REQUIRED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "RESPONSE_FORMAT_DRIFT" | "CALLER_FAILED";
export type AnthropicV1EnvironmentsError = {
    code: AnthropicV1EnvironmentsErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type AnthropicV1EnvironmentsProviderResponseEnvelope = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_ENVIRONMENTS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type AnthropicV1EnvironmentsInvocationResult = {
    ok: true;
    request: AnthropicV1EnvironmentsRequestEnvelope;
    response: AnthropicV1EnvironmentsProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: AnthropicV1EnvironmentsError;
    request?: AnthropicV1EnvironmentsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyAnthropicV1EnvironmentsProviderError(error: unknown): AnthropicV1EnvironmentsErrorCode;
export declare function invokeAnthropicV1Environments(input?: AnthropicV1EnvironmentsInvocationRequest): Promise<AnthropicV1EnvironmentsInvocationResult>;
