export declare const ANTHROPIC_V1_SESSIONS_ENDPOINT: "/v1/sessions";
export declare const DEFAULT_ANTHROPIC_V1_SESSIONS_BASE_URL: "https://api.anthropic.com";
export declare const DEFAULT_ANTHROPIC_VERSION: "2023-06-01";
export type AnthropicV1SessionsOperation = "create" | "list" | "retrieve" | "delete";
export type AnthropicV1SessionsMethod = "GET" | "POST" | "DELETE";
export type AnthropicV1SessionsBoundary = "input" | "contract" | "governance" | "provider" | "timeout" | "response";
export type AnthropicV1SessionsErrorCode = "MISSING_REQUEST" | "MISSING_OPERATION" | "MISSING_SESSION_ID" | "MISSING_REQUEST_BODY" | "MISSING_AUTH_TOKEN" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "TRANSPORT_UNAVAILABLE" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "PROVIDER_ERROR" | "RESPONSE_FORMAT_DRIFT";
export type AnthropicV1SessionsGate = {
    accepted: boolean;
    reason?: string;
};
export type AnthropicV1SessionsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
};
export type AnthropicV1SessionsBody = Readonly<Record<string, unknown>>;
export type AnthropicV1SessionsProviderEnvelope = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_SESSIONS_ENDPOINT;
    operation: AnthropicV1SessionsOperation;
    method: AnthropicV1SessionsMethod;
    url: string;
    headers: Readonly<Record<string, string>>;
    body?: AnthropicV1SessionsBody;
    timeoutMs: number;
    dryRun: boolean;
    providerCallPlanned: boolean;
    runtime: AnthropicV1SessionsRuntimeContext;
};
export type AnthropicV1SessionsProviderResult = {
    statusCode: number;
    body: unknown;
    headers?: Readonly<Record<string, string>>;
};
export type AnthropicV1SessionsTransport = (envelope: AnthropicV1SessionsProviderEnvelope) => Promise<AnthropicV1SessionsProviderResult> | AnthropicV1SessionsProviderResult;
export type AnthropicV1SessionsRequest = {
    operation?: AnthropicV1SessionsOperation;
    sessionId?: string;
    baseUrl?: string;
    apiKey?: string;
    anthropicVersion?: string;
    body?: AnthropicV1SessionsBody;
    timeoutMs?: number;
    dryRun?: boolean;
    runtime?: AnthropicV1SessionsRuntimeContext;
    contract?: AnthropicV1SessionsGate;
    governance?: AnthropicV1SessionsGate;
    transport?: AnthropicV1SessionsTransport;
};
export type AnthropicV1SessionsResponseEnvelope = {
    kind: "dry-run" | "provider";
    statusCode?: number;
    body: unknown;
    headers?: Readonly<Record<string, string>>;
};
export type AnthropicV1SessionsCapabilitySignal = {
    provider: "anthropic";
    endpoint: typeof ANTHROPIC_V1_SESSIONS_ENDPOINT;
    operation: AnthropicV1SessionsOperation;
    rawShape: "session-object" | "dry-run";
};
export type AnthropicV1SessionsError = {
    code: AnthropicV1SessionsErrorCode;
    message: string;
    boundary: AnthropicV1SessionsBoundary;
    statusCode?: number;
};
export type AnthropicV1SessionsResult = {
    ok: true;
    envelope: AnthropicV1SessionsProviderEnvelope;
    response: AnthropicV1SessionsResponseEnvelope;
    capability: AnthropicV1SessionsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: AnthropicV1SessionsError;
    envelope?: AnthropicV1SessionsProviderEnvelope;
    events: readonly string[];
};
export declare function invokeAnthropicV1Sessions(request?: AnthropicV1SessionsRequest): Promise<AnthropicV1SessionsResult>;
