import { type CodexNativeThread, type CodexNativeTurn, type NativeInteraction, type CodexNativePermissions } from "./codex-native-types.js"; import type { CodexAppServerThreadItem } from "./codex-app-server-read-client.js"; export declare function nativeRecord(value: unknown): Record; export declare function nativeId(value: unknown, limit?: number): string; export declare function nativeInvalid(message: string): never; export declare function parseNativeThread(value: unknown, expectedId: string): CodexNativeThread; /** Metadata describes the thread's origin, not the currently running frontend version. */ export declare function isMainCodexCliThread(thread: CodexNativeThread): boolean; export declare function parseNativeItem(value: unknown): CodexAppServerThreadItem; export declare function parseNativeTurn(value: unknown): CodexNativeTurn; export declare function nativePage(value: unknown, parse: (entry: unknown) => T): { data: T[]; nextCursor: string | null; }; export declare function nativeInteractionId(identity: unknown): string; export declare function nativeAsyncInteractions(threadId: string, turn: CodexNativeTurn): NativeInteraction[]; export declare function nativeUserMessageText(item: CodexAppServerThreadItem): string | null; export declare function findNativeSubmission(turns: CodexNativeTurn[], clientUserMessageId: string, text: string): CodexNativeTurn | null; export declare function parseNativePermissions(value: unknown): CodexNativePermissions;