DieselDepot-APP/node_modules/next/dist/experimental/testmode/context.d.ts
SJCoetz def597c157 chore: add generated build artifacts and node module type files
add all Next.js build outputs and third-party dependency type declaration files
2026-07-20 01:18:42 +02:00

11 lines
416 B
TypeScript

export interface TestReqInfo {
url: string;
proxyPort: number;
testData: string;
}
export interface TestRequestReader<R> {
url(req: R): string;
header(req: R, name: string): string | null;
}
export declare function withRequest<R, T>(req: R, reader: TestRequestReader<R>, fn: () => T): T;
export declare function getTestReqInfo<R>(req?: R, reader?: TestRequestReader<R>): TestReqInfo | undefined;