export declare const DEEPMIND_V1BETA_BATCHES_ENDPOINT: "/v1beta/batches";
export type DeepmindV1BetaBatchesMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type DeepmindV1BetaBatchesGate = {
    accepted: boolean;
    reason?: string;
};
export type DeepmindV1BetaBatchesRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type DeepmindV1BetaBatchesAuthEnvelope = {
    kind: "api-key" | "oauth" | "none";
    present: boolean;
    redactedToken?: string;
};
export type DeepmindV1BetaBatchesRequestEnvelope = {
    provider: "deepmind-gemini";
    apiVersion: "v1beta";
    endpoint: typeof DEEPMIND_V1BETA_BATCHES_ENDPOINT;
    operation: string;
    method: DeepmindV1BetaBatchesMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<DeepmindV1BetaBatchesRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type DeepmindV1BetaBatchesProviderCaller = (envelope: DeepmindV1BetaBatchesRequestEnvelope) => unknown | Promise<unknown>;
export type DeepmindV1BetaBatchesInvocationRequest = {
    operation?: string;
    method?: DeepmindV1BetaBatchesMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: DeepmindV1BetaBatchesAuthEnvelope;
    runtime?: DeepmindV1BetaBatchesRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: DeepmindV1BetaBatchesGate;
    governance?: DeepmindV1BetaBatchesGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: DeepmindV1BetaBatchesProviderCaller;
};
export type DeepmindV1BetaBatchesErrorCode = "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 DeepmindV1BetaBatchesError = {
    code: DeepmindV1BetaBatchesErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type DeepmindV1BetaBatchesProviderResponseEnvelope = {
    provider: "deepmind-gemini";
    endpoint: typeof DEEPMIND_V1BETA_BATCHES_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type DeepmindV1BetaBatchesInvocationResult = {
    ok: true;
    request: DeepmindV1BetaBatchesRequestEnvelope;
    response: DeepmindV1BetaBatchesProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: DeepmindV1BetaBatchesError;
    request?: DeepmindV1BetaBatchesRequestEnvelope;
    events: readonly string[];
};
export declare function classifyDeepmindV1BetaBatchesProviderError(error: unknown): DeepmindV1BetaBatchesErrorCode;
export declare function invokeDeepmindV1BetaBatches(input?: DeepmindV1BetaBatchesInvocationRequest): Promise<DeepmindV1BetaBatchesInvocationResult>;
