export declare const OPENAI_V1_SKILLS_ENDPOINT: "/v1/skills";
export declare const DEFAULT_OPENAI_V1_SKILLS_BASE_URL: "https://api.openai.com";
export type OpenAIV1SkillsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1SkillsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1SkillsErrorCode = "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 OpenAIV1SkillsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1SkillsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1SkillsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
};
export type OpenAIV1SkillsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_SKILLS_ENDPOINT;
    operation: string;
    method: OpenAIV1SkillsMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1SkillsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: boolean;
    providerCallPlanned: boolean;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1SkillsProviderCaller = (envelope: OpenAIV1SkillsRequestEnvelope) => unknown | Promise<unknown>;
export type OpenAIV1SkillsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1SkillsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1SkillsAuthEnvelope;
    runtime?: OpenAIV1SkillsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1SkillsGate;
    governance?: OpenAIV1SkillsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    caller?: OpenAIV1SkillsProviderCaller;
};
export type OpenAIV1SkillsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_SKILLS_ENDPOINT;
    mode: "dry-run" | "mock" | "caller";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1SkillsCapabilitySignal = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_SKILLS_ENDPOINT;
    operation: string;
    rawShape: "skill-object" | "skill-list" | "mock" | "dry-run";
};
export type OpenAIV1SkillsError = {
    code: OpenAIV1SkillsErrorCode;
    message: string;
    boundary: OpenAIV1SkillsBoundary;
    retryable: boolean;
};
export type OpenAIV1SkillsResult = {
    ok: true;
    request: OpenAIV1SkillsRequestEnvelope;
    response: OpenAIV1SkillsResponseEnvelope;
    capability: OpenAIV1SkillsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1SkillsError;
    request?: OpenAIV1SkillsRequestEnvelope;
    events: readonly string[];
};
export declare function classifyOpenAIV1SkillsProviderError(error: unknown): OpenAIV1SkillsErrorCode;
export declare function invokeOpenAIV1Skills(input?: OpenAIV1SkillsInvocationRequest): Promise<OpenAIV1SkillsResult>;
