import type { TypedResponse } from "@remix-run/server-runtime";
type ResponseResult<LoaderData> = {
  [Key in keyof LoaderData]: LoaderData[Key] extends () => infer ReturnValue
    ? ReturnValue extends PromiseLike<infer Value>
      ? Value
      : ReturnValue
    : LoaderData[Key] extends PromiseLike<infer Value>
    ? Value
    : LoaderData[Key];
};
export declare function jsonHash<LoaderData extends Record<string, unknown>>(
  input: LoaderData,
  init?: ResponseInit | number
): Promise<TypedResponse<ResponseResult<LoaderData>>>;
export {};
