import type { Handle } from '@sveltejs/kit/hooks'; type UserAuthConfig = { protectedRoutes?: string[] | null; loginPath?: string; }; type AuthConfig = { protectedRoutes?: string[] | null; loginPath: string; }; type UserApiKeysConfig = { enabled?: boolean; collection?: string; }; type ApiKeysConfig = { enabled: boolean; collection: string; }; type UserApiConfig = { enabled?: boolean; apiKeys?: UserApiKeysConfig; }; type ApiConfig = { enabled: boolean; apiKeys: ApiKeysConfig; }; type UserFilesConfig = { enabled?: boolean; }; type FilesConfig = { enabled: boolean; }; type UserConfig = { /** * Required, but typed as possibly undefined: it normally comes from an env var * the CLI injects at runtime, which no caller can promise at compile time. * Absent at startup is a clear throw, not a type error at every call site. */ pocketbaseUrl: string | undefined; adminPath?: string; superuserEmail?: string | null; superuserPassword?: string | null; auth?: UserAuthConfig; api?: UserApiConfig; files?: UserFilesConfig; }; type Config = { pocketbaseUrl: string; adminPath: string; superuserEmail?: string | null; superuserPassword?: string | null; auth: AuthConfig; api: ApiConfig; files: FilesConfig; root?: string; }; type HandleConfig = Handle & { config: Config; }; export declare const handlePocketbase: (config: UserConfig) => HandleConfig; export {}; //# sourceMappingURL=middleware.d.ts.map