import type { IncomingMessage, ServerResponse } from "http"; import type { ConversationListItem } from "../../conversation-cache"; import type { SessionListQuery } from "../../types"; export declare function classifyResumability(cwd: string | null | undefined): { resumable: boolean; unavailable_reason?: "path_missing" | "worktree_removed"; }; export declare function conversationToResumableSession(c: ConversationListItem): { type: "conversation"; id: string; conversationId: string; status: "on_hold"; ownership: "historical"; lifecycle: "resumable"; lifecycleSource: "reconcile"; ptyAttached: boolean; projectId: string | undefined; projectPath: string; projectName: string; branch: string | undefined; lastOutput: string; elapsedMs: number; subStatus: null; promptSuggestion: null; promptCount: number; startedAt: string; completedAt: null; lastActivityAt: string; sessionName?: string | undefined; model?: string | undefined; account?: string | undefined; messageCount: number; preview?: string | undefined; firstMessageText?: string | undefined; lastMessageText?: string | undefined; filePath: string; provider: "claude-code" | "codex-cli" | "cursor"; resumable: boolean; unavailable_reason?: "path_missing" | "worktree_removed" | undefined; }; export declare function json(res: ServerResponse, status: number, data: unknown): void; export declare function writeHonoResponse(honoRes: Response, res: ServerResponse): Promise; export declare function intParam(url: URL, name: string, defaultValue: number): number; /** `refresh=1` style: 1/true → true, 0/false → false, absent/invalid → undefined. */ export declare function boolQueryParam(url: URL, name: string): boolean | undefined; export declare function includeQueryParam(url: URL): "all" | "conversations" | "subagents" | undefined; export type ParsedSessionListQuery = { query: SessionListQuery; } | { error: string; }; export declare function parseSessionListQuery(url: URL): ParsedSessionListQuery; export declare function readBody(req: IncomingMessage): Promise; //# sourceMappingURL=http-helpers.d.ts.map