export declare const OPENAI_V1_PROJECTS_ENDPOINT: "/v1/projects";
export declare const DEFAULT_OPENAI_V1_PROJECTS_BASE_URL: "https://api.openai.com";
export type OpenAIV1ProjectsMethod = "GET" | "POST" | "PATCH" | "DELETE";
export type OpenAIV1ProjectsBoundary = "input" | "contract" | "governance" | "auth" | "scope" | "provider" | "response";
export type OpenAIV1ProjectsErrorCode = "MISSING_OPERATION" | "MISSING_RUNTIME_ID" | "INVALID_QUERY" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "AUTH_REJECTED" | "REAL_PROVIDER_CALL_NOT_ALLOWED" | "PROVIDER_AUTH_FAILED" | "PROVIDER_RATE_LIMITED" | "PROVIDER_TIMEOUT" | "PROVIDER_UNAVAILABLE" | "RESPONSE_FORMAT_DRIFT" | "PROVIDER_REJECTED";
export type OpenAIV1ProjectsGate = {
    accepted: boolean;
    reason?: string;
};
export type OpenAIV1ProjectsRuntimeContext = {
    runtimeId?: string;
    invocationId?: string;
    traceId?: string;
    callerId?: string;
};
export type OpenAIV1ProjectsAuthEnvelope = {
    kind: "bearer" | "api-key" | "none";
    present: boolean;
    redactedToken?: string;
    organizationId?: string;
};
export type OpenAIV1ProjectsRequestEnvelope = {
    provider: "openai";
    apiVersion: "v1";
    endpoint: typeof OPENAI_V1_PROJECTS_ENDPOINT;
    operation: string;
    method: OpenAIV1ProjectsMethod;
    url: string;
    pathSuffix: string;
    query: Readonly<Record<string, string>>;
    headers: Readonly<Record<string, string>>;
    body?: unknown;
    runtime: Required<OpenAIV1ProjectsRuntimeContext>;
    requestedScopes: readonly string[];
    grantedScopes: readonly string[];
    dryRun: true;
    providerCallPlanned: false;
    unsafeSideEffects: false;
    providerFieldsOpaque: true;
};
export type OpenAIV1ProjectsInvocationRequest = {
    operation?: string;
    method?: OpenAIV1ProjectsMethod;
    pathSuffix?: string;
    query?: Readonly<Record<string, string | number | boolean | undefined>>;
    headers?: Readonly<Record<string, string | undefined>>;
    body?: unknown;
    baseUrl?: string;
    auth?: OpenAIV1ProjectsAuthEnvelope;
    runtime?: OpenAIV1ProjectsRuntimeContext;
    requiredScopes?: readonly string[];
    allowedScopes?: readonly string[];
    contract?: OpenAIV1ProjectsGate;
    governance?: OpenAIV1ProjectsGate;
    dryRun?: boolean;
    mockResponse?: unknown;
    expectResponseObject?: boolean;
    providerError?: unknown;
};
export type OpenAIV1ProjectsResponseEnvelope = {
    provider: "openai";
    endpoint: typeof OPENAI_V1_PROJECTS_ENDPOINT;
    mode: "dry-run" | "mock";
    raw: unknown;
    providerFieldsOpaque: true;
};
export type OpenAIV1ProjectsCapabilitySignal = {
    provider: "openai";
    layer: "actualInvocationLayer";
    endpoint: typeof OPENAI_V1_PROJECTS_ENDPOINT;
    operation: string;
    rawShape: "projects-list" | "project-object" | "mock" | "dry-run";
    providerRawShapePromoted: false;
};
export type OpenAIV1ProjectsError = {
    code: OpenAIV1ProjectsErrorCode;
    message: string;
    boundary: OpenAIV1ProjectsBoundary;
    retryable: boolean;
    safeForRuntimeInspection: true;
    providerRawDetailExposed: false;
};
export type OpenAIV1ProjectsResult = {
    ok: true;
    request: OpenAIV1ProjectsRequestEnvelope;
    response: OpenAIV1ProjectsResponseEnvelope;
    capability: OpenAIV1ProjectsCapabilitySignal;
    events: readonly string[];
} | {
    ok: false;
    error: OpenAIV1ProjectsError;
    request?: OpenAIV1ProjectsRequestEnvelope;
    events: readonly string[];
};
export declare const openAIV1ProjectsDescriptor: {
    readonly provider: "openai";
    readonly layer: "actualInvocationLayer";
    readonly endpoint: "/v1/projects";
    readonly methods: readonly ["GET", "POST", "PATCH", "DELETE"];
    readonly requestShape: "query-or-json";
    readonly providerRawShapePromoted: false;
    readonly unsafeSideEffects: false;
};
export declare function classifyOpenAIV1ProjectsProviderError(error: unknown): OpenAIV1ProjectsErrorCode;
export declare function createOpenAIV1ProjectsInvocation(input?: OpenAIV1ProjectsInvocationRequest): OpenAIV1ProjectsResult;
