/** * Same-origin HTTP client for the dsh-session-archive host routes. * @module @linxin666/dsh-session-archive/client/api */ import type { ArchiveSessionRow, AutoPreviewView, BatchResponse, InventoryView, RunStats, SessionPreviewView } from '../core/types.ts'; export declare class ArchiveApiError extends Error { readonly status: number; readonly body: unknown; constructor(status: number, body: unknown); } export interface ArchiveApi { inventory(): Promise; preview(id: string): Promise; archive(ids: string[], currentSessionId?: string): Promise; unarchive(ids: string[]): Promise; deleteSessions(ids: string[], currentSessionId: string | undefined, expectedTotal: number): Promise; autoPreview(): Promise; autoRun(kind: 'archive' | 'delete', currentSessionId?: string): Promise; } export declare function createArchiveApi(): ArchiveApi; /** Client-side type re-exports for component props. */ export type { ArchiveSessionRow };