/** Thrown by replayCore for expected failures; carries a user-facing hint. */ export declare class ReplayError extends Error { hint?: string; constructor(message: string, hint?: string); } export interface ReplayCoreOptions { /** Request to replay: 1 = oldest, -1 = latest. Default -1. */ index?: string; target?: string; method?: string; path?: string; header?: string[]; body?: string; set?: string[]; /** * Re-sign the (possibly edited) body with this provider's scheme, using * `resignSecret`. Without this, editing a signed capture's body via --set * makes the handler's signature check fail - --resign keeps replays valid. */ resign?: string; resignSecret?: string; } export interface ReplayResult { /** 1-based index of the replayed entry and log size at replay time. */ index: number; total: number; method: string; path: string; target: string; status: number; durationMs: number; responseHeaders: Record; /** base64 */ responseBody: string | null; } export interface ReplayOptions { index: string; target?: string; method?: string; path?: string; header: string[]; body?: string; set: string[]; resign?: string; secret?: string; json?: boolean; } /** Re-send a captured request. Throws ReplayError on expected failures. */ export declare function replayCore(subdomain: string, options: ReplayCoreOptions): Promise; /** `otterkit replay ` - CLI wrapper around replayCore. */ export declare function replayCmd(subdomain: string, options: ReplayOptions): Promise;