import { Temporal } from "@js-temporal/polyfill";
import { URLPattern } from "urlpattern-polyfill";
import "../kv-C7sopW2E.js";
import "../docloader-CxWcuWqQ.js";
import "../client-bgSdkFa2.js";
import "../vocab-SOE1ifCr.js";
import "../actor-C22bXuuC.js";
import "../http-DqSNLFNY.js";
import "../owner-CQPnQVtf.js";
import "../mod-Cxt4Kpf6.js";
import "../mod-DBzN0aCM.js";
import { Federation } from "../context-CQsAT7xk.js";
import "../mq-CRGm1e_F.js";

//#region src/x/sveltekit.d.ts
type RequestEvent = {
  request: Request;
};
type HookParams = {
  event: RequestEvent;
  resolve: (event: RequestEvent) => Promise<Response>;
};
/**
 * Create a SvelteKit hook handler to integrate with the {@link Federation}
 * object.
 *
 * @deprecated This function has been moved to `@fedify/sveltekit` package.
 *             Import `fedifyHook` from `@fedify/sveltekit` instead.
 *             This function will be removed in Fedify v2.0.
 *
 * @example hooks.server.ts
 * ``` typescript
 * import { federation } from "./federation"; // Import the `Federation` object
 *
 * export const handle = fedifyHook(federation, () => undefined);
 * ```
 *
 * @template TContextData A type of the context data for the {@link Federation}
 *                         object.
 * @param federation A {@link Federation} object to integrate with SvelteKit.
 * @param createContextData A function to create a context data for the
 *                          {@link Federation} object.
 * @returns A SvelteKit hook handler.
 * @since 1.3.0
 */
declare function fedifyHook<TContextData>(federation: Federation<TContextData>, createContextData: (event: RequestEvent) => TContextData | Promise<TContextData>): (params: HookParams) => Promise<Response>;
//#endregion
export { fedifyHook };