/**
 * Unwraps a value that might be a `Response` object or a direct value. If it's a `Response`,
 * it parses the JSON body and returns it; otherwise, it returns the value directly.
 *
 * @template T The expected type of the unwrapped value.
 *
 * @param res The value to unwrap, which can be a `Promise`, `Response`, or a direct value.
 *
 * @returns A Promise resolving to the unwrapped value.
 */
export declare function unwrap<T>(res: Promise<Response | T> | Response | T): Promise<T>;
