import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import * as components from "../components/index.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type RetrieveResponseRequest = {
    /**
     * The ID of the response to retrieve
     */
    responseId: string;
};
export declare const RetrieveResponseServiceTier: {
    readonly Auto: "auto";
    readonly Default: "default";
    readonly Flex: "flex";
    readonly Priority: "priority";
};
export type RetrieveResponseServiceTier = ClosedEnum<typeof RetrieveResponseServiceTier>;
export declare const RetrieveResponseStatus: {
    readonly Queued: "queued";
    readonly InProgress: "in_progress";
    readonly Completed: "completed";
    readonly Failed: "failed";
    readonly Incomplete: "incomplete";
    readonly RequiresAction: "requires_action";
};
export type RetrieveResponseStatus = ClosedEnum<typeof RetrieveResponseStatus>;
export declare const RetrieveResponseTruncation: {
    readonly Disabled: "disabled";
    readonly Auto: "auto";
};
export type RetrieveResponseTruncation = ClosedEnum<typeof RetrieveResponseTruncation>;
/**
 * Response retrieved successfully.
 */
export type RetrieveResponseResponseBody = {
    background: boolean;
    completedAt: number | null;
    conversation?: components.ConversationParam | undefined;
    createdAt: number;
    error: components.ResponseError;
    frequencyPenalty: number;
    id: string;
    incompleteDetails: components.IncompleteDetails;
    /**
     * Array of input items (messages, function call outputs, etc.)
     */
    input: Array<any> | null;
    instructions: string | null;
    maxOutputTokens: number | null;
    maxToolCalls: number | null;
    memory?: components.MemoryParam | undefined;
    /**
     * Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string>).
     */
    metadata: {
        [k: string]: string;
    };
    model: string;
    /**
     * Always "response"
     */
    object: string;
    /**
     * Array of output items (messages, function calls, reasoning, etc.)
     */
    output: Array<any> | null;
    parallelToolCalls: boolean;
    presencePenalty: number;
    previousResponseId: string | null;
    promptCacheKey: string | null;
    promptCacheRetention: string | null;
    reasoning: components.Reasoning;
    safetyIdentifier: string | null;
    serviceTier: RetrieveResponseServiceTier;
    status: RetrieveResponseStatus;
    store: boolean;
    temperature: number;
    /**
     * Text output configuration including format and verbosity
     */
    text?: any | undefined;
    /**
     * Tool choice setting: "auto", "none", "required", or a specific function
     */
    toolChoice?: any | undefined;
    /**
     * Array of tool configurations used in this response
     */
    tools: Array<any> | null;
    topLogprobs: number;
    topP: number;
    truncation: RetrieveResponseTruncation;
    usage: components.PublicUsage;
    user: string | null;
    variables?: {
        [k: string]: any;
    } | undefined;
};
/** @internal */
export type RetrieveResponseRequest$Outbound = {
    response_id: string;
};
/** @internal */
export declare const RetrieveResponseRequest$outboundSchema: z.ZodType<RetrieveResponseRequest$Outbound, z.ZodTypeDef, RetrieveResponseRequest>;
export declare function retrieveResponseRequestToJSON(retrieveResponseRequest: RetrieveResponseRequest): string;
/** @internal */
export declare const RetrieveResponseServiceTier$inboundSchema: z.ZodNativeEnum<typeof RetrieveResponseServiceTier>;
/** @internal */
export declare const RetrieveResponseStatus$inboundSchema: z.ZodNativeEnum<typeof RetrieveResponseStatus>;
/** @internal */
export declare const RetrieveResponseTruncation$inboundSchema: z.ZodNativeEnum<typeof RetrieveResponseTruncation>;
/** @internal */
export declare const RetrieveResponseResponseBody$inboundSchema: z.ZodType<RetrieveResponseResponseBody, z.ZodTypeDef, unknown>;
export declare function retrieveResponseResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveResponseResponseBody, SDKValidationError>;
//# sourceMappingURL=retrieveresponse.d.ts.map