export declare const ANTHROPIC_V1_FILES_ENDPOINT: "/v1/files";
export type AnthropicV1FilesMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type AnthropicV1FilesGate = {
    accepted: boolean;
    reason?: string;
};
export type AnthropicV1FilesRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type AnthropicV1FilesAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type AnthropicV1FilesRequestEnvelope = {
    provider: "anthropic";
    apiVersion: "v1";
    endpoint: typeof ANTHROPIC_V1_FILES_ENDPOINT;
    operation: string;
    method: AnthropicV1FilesMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<AnthropicV1FilesRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type AnthropicV1FilesProviderCaller = (envelope: AnthropicV1FilesRequestEnvelope) => unknown | Promise<unknown>;
export type AnthropicV1FilesInvocationRequest = {
    operation?: string;
    method?: AnthropicV1FilesMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: AnthropicV1FilesAuthEnvelope;
    runtime?: AnthropicV1FilesRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: AnthropicV1FilesGate;
    governance?: AnthropicV1FilesGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: AnthropicV1FilesProviderCaller;
};
export type AnthropicV1FilesErrorCode = "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 AnthropicV1FilesError = {
    code: AnthropicV1FilesErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type AnthropicV1FilesProviderResponseEnvelope = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_FILES_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type AnthropicV1FilesInvocationResult = {
    ok: true;
    request: AnthropicV1FilesRequestEnvelope;
    response: AnthropicV1FilesProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: AnthropicV1FilesError;
    request?: AnthropicV1FilesRequestEnvelope;
    events: readonly string[];
};
export declare function classifyAnthropicV1FilesProviderError(error: unknown): AnthropicV1FilesErrorCode;
export declare function invokeAnthropicV1Files(input?: AnthropicV1FilesInvocationRequest): Promise<AnthropicV1FilesInvocationResult>;
