export declare const ANTHROPIC_V1_AGENTS_ENDPOINT: "/v1/agents";
export type AnthropicV1AgentsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type AnthropicV1AgentsGate = {
    accepted: boolean;
    reason?: string;
};
export type AnthropicV1AgentsRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type AnthropicV1AgentsAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type AnthropicV1AgentsRequestEnvelope = {
    provider: "anthropic";
    apiVersion: "v1";
    endpoint: typeof ANTHROPIC_V1_AGENTS_ENDPOINT;
    operation: string;
    method: AnthropicV1AgentsMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<AnthropicV1AgentsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type AnthropicV1AgentsProviderCaller = (envelope: AnthropicV1AgentsRequestEnvelope) => unknown | Promise<unknown>;
export type AnthropicV1AgentsInvocationRequest = {
    operation?: string;
    method?: AnthropicV1AgentsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: AnthropicV1AgentsAuthEnvelope;
    runtime?: AnthropicV1AgentsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: AnthropicV1AgentsGate;
    governance?: AnthropicV1AgentsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: AnthropicV1AgentsProviderCaller;
};
export type AnthropicV1AgentsErrorCode = "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 AnthropicV1AgentsError = {
    code: AnthropicV1AgentsErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type AnthropicV1AgentsProviderResponseEnvelope = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_AGENTS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type AnthropicV1AgentsInvocationResult = {
    ok: true;
    request: AnthropicV1AgentsRequestEnvelope;
    response: AnthropicV1AgentsProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: AnthropicV1AgentsError;
    request?: AnthropicV1AgentsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyAnthropicV1AgentsProviderError(error: unknown): AnthropicV1AgentsErrorCode;
export declare function invokeAnthropicV1Agents(input?: AnthropicV1AgentsInvocationRequest): Promise<AnthropicV1AgentsInvocationResult>;
