import type { RequestTargetOrId } from '../resources/RequestTarget.ts';
export declare function when<T, R>(value: T | Promise<T>, callback: (value: T) => R, reject?: (error: any) => void): R | Promise<R | void>;
export declare function promiseNormalize<T>(returnValue: T | Promise<T>, target: RequestTargetOrId): T | Promise<T>;
