export declare const OPENAI_V1_FINE_TUNING_JOBS_ENDPOINT: "/v1/fine_tuning/jobs";
export type OpenAIV1FineTuningJobsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1FineTuningJobsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1FineTuningJobsRuntimeContext = {
    runtimeId?: string;
    correlationId?: string;
    callerId?: string;
};
export type OpenAIV1FineTuningJobsAuthEnvelope = {
    kind: "api-key" | "bearer" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1FineTuningJobsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_FINE_TUNING_JOBS_ENDPOINT;
    operation: string;
    method: OpenAIV1FineTuningJobsMethod;
    urlPath: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1FineTuningJobsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1FineTuningJobsProviderCaller = (envelope: OpenAIV1FineTuningJobsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1FineTuningJobsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1FineTuningJobsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    auth?: OpenAIV1FineTuningJobsAuthEnvelope;
    runtime?: OpenAIV1FineTuningJobsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1FineTuningJobsGate;
    governance?: OpenAIV1FineTuningJobsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1FineTuningJobsProviderCaller;
};
export type OpenAIV1FineTuningJobsErrorCode = "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 OpenAIV1FineTuningJobsError = {
    code: OpenAIV1FineTuningJobsErrorCode;
    message: string;
    boundary: "input" | "contract" | "governance" | "auth" | "scope" | "provider";
    retryable: boolean;
};
export type OpenAIV1FineTuningJobsProviderResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_FINE_TUNING_JOBS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1FineTuningJobsInvocationResult = {
    ok: true;
    request: OpenAIV1FineTuningJobsRequestEnvelope;
    response: OpenAIV1FineTuningJobsProviderResponseEnvelope;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1FineTuningJobsError;
    request?: OpenAIV1FineTuningJobsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1FineTuningJobsProviderError(error: unknown): OpenAIV1FineTuningJobsErrorCode;
export declare function invokeOpenAIV1FineTuningJobs(input?: OpenAIV1FineTuningJobsInvocationRequest): Promise<OpenAIV1FineTuningJobsInvocationResult>;
