export interface ServiceCall { method: string; args: unknown[]; result?: unknown; error?: unknown; } export interface FetchRoute { method?: string; url: string | ((url: string) => boolean); status?: number; json?: unknown; text?: string; error?: Error; } export declare function fakeService(stubs?: Partial): T & { calls: ServiceCall[]; }; export declare function fakeFetch(routes: FetchRoute[]): typeof globalThis.fetch & { calls: Request[]; };