UNPKG

histoire

Version:

A fast story book powered by Vite

23 lines • 789 B
import type { StaticMockOptions } from './types.js'; /** * Creates the RPC shape consumed by Vitest's browser mocker in static previews. * * In dev the mocker talks to the Vite dev server over HMR; a built preview has * no server, so the same contract is answered from the emitted chunks instead. */ export declare function createStaticPreviewMockRpc(): { resolveId(id: string, importer: string): Promise<{ id: any; url: any; optimized: boolean; }>; resolveMock(id: string, importer: string, options?: StaticMockOptions): Promise<{ mockType: string; needsInterop: boolean; redirectUrl: any; resolvedId: any; resolvedUrl: any; }>; invalidate(): Promise<void>; }; //# sourceMappingURL=mock-rpc.d.ts.map