bpms_site/.svn/pristine/4e/4e53c80a2fd39944ed408d0dd2ff734c6147a553.svn-base
2025-11-02 16:38:49 +03:30

5 lines
375 B
Plaintext

import type { ProxyFetchRequest, ProxyResponse } from './types';
export type FetchHandlerResult = Response | 'abort' | 'continue' | null | undefined;
export type FetchHandler = (testData: string, request: Request) => FetchHandlerResult | Promise<FetchHandlerResult>;
export declare function handleFetch(req: ProxyFetchRequest, onFetch: FetchHandler): Promise<ProxyResponse>;