export interface StoredRequest { id: string; receivedAt: string; method: string; path: string; headers: Record; body: string | null; bodyTruncated: boolean; contentType: string | null; sourceIp: string | null; servedStatus: number | null; /** Signature verdict at arrival; null when verification wasn't armed. */ verify: { status: 'valid' | 'invalid' | 'missing'; provider: string | null; } | null; } export interface HistoryFilters { limit?: number; method?: string; /** Path substring filter (server-side). */ path?: string; /** ISO receivedAt cursor: return strictly older rows. */ before?: string; } export declare class HistoryError extends Error { code: string; constructor(code: string, message?: string); } /** * Fetch stored capture history for a subdomain the account owns. Core is * CLI-agnostic so the MCP server reuses it. */ export declare function fetchHistory(subdomain: string, filters?: HistoryFilters): Promise<{ requests: StoredRequest[]; hasMore: boolean; }>; /** * Re-deliver a server-stored capture to a target URL, with optional * method/headers/body overrides. Cloud endpoints only (they hold the * history); local-log captures replay with `otterkit replay`. */ export declare function replayStored(subdomain: string, requestId: string, opts: { targetUrl: string; method?: string; headers?: Record; bodyText?: string; }): Promise<{ delivered: boolean; status: number; durationMs: number; }>; /** * Toggle email-on-arrival for a webhook session the account owns. Same * token-authed API surface as fetchHistory; the throttling (1 email/15min, * 20/day) lives server-side. */ export declare function setNotifyEmail(subdomain: string, enabled: boolean): Promise; /** `otterkit requests ` - print stored history. */ export declare function printHistory(subdomain: string, opts: { json?: boolean; limit?: number; method?: string; path?: string; body?: boolean; }): Promise;