export declare const OPENAI_V1_FINE_TUNING_CHECKPOINTS_ENDPOINT: "/v1/fine_tuning/checkpoints";
export type OpenAIV1FineTuningCheckpointsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1FineTuningCheckpointsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1FineTuningCheckpointsRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type OpenAIV1FineTuningCheckpointsAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1FineTuningCheckpointsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_FINE_TUNING_CHECKPOINTS_ENDPOINT;
    operation: string;
    method: OpenAIV1FineTuningCheckpointsMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1FineTuningCheckpointsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1FineTuningCheckpointsProviderCaller = (envelope: OpenAIV1FineTuningCheckpointsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1FineTuningCheckpointsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1FineTuningCheckpointsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: OpenAIV1FineTuningCheckpointsAuthEnvelope;
    runtime?: OpenAIV1FineTuningCheckpointsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1FineTuningCheckpointsGate;
    governance?: OpenAIV1FineTuningCheckpointsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1FineTuningCheckpointsProviderCaller;
};
export type OpenAIV1FineTuningCheckpointsErrorCode = "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 OpenAIV1FineTuningCheckpointsError = {
    code: OpenAIV1FineTuningCheckpointsErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type OpenAIV1FineTuningCheckpointsProviderResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_FINE_TUNING_CHECKPOINTS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1FineTuningCheckpointsInvocationResult = {
    ok: true;
    request: OpenAIV1FineTuningCheckpointsRequestEnvelope;
    response: OpenAIV1FineTuningCheckpointsProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1FineTuningCheckpointsError;
    request?: OpenAIV1FineTuningCheckpointsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1FineTuningCheckpointsProviderError(error: unknown): OpenAIV1FineTuningCheckpointsErrorCode;
export declare function invokeOpenAIV1FineTuningCheckpoints(input?: OpenAIV1FineTuningCheckpointsInvocationRequest): Promise<OpenAIV1FineTuningCheckpointsInvocationResult>;
