export type RestorableMock = { mockRestore(): void; }; export declare function withRestoredMocks(mocks: readonly RestorableMock[], run: () => Promise): Promise; export declare function withRestoredMocks(mocks: readonly RestorableMock[], run: () => T): T; export declare function mockProcessPlatform(platform: NodeJS.Platform): RestorableMock; export declare function withMockedPlatform(platform: NodeJS.Platform, run: () => Promise): Promise; export declare function withMockedPlatform(platform: NodeJS.Platform, run: () => T): T; export declare function withMockedWindowsPlatform(run: () => Promise): Promise; export declare function withMockedWindowsPlatform(run: () => T): T;