import { DataStore } from "./data-store.mjs"; import { FetchInit } from "./plugin.mjs"; import { AnyRouteContext } from "./context.mjs"; //#region src/auth-store.d.ts type CreateAuthStoreOptions = { ctx: AnyRouteContext; path: string; parse?: (raw: unknown) => T; initial?: T | null; fetchOnMount?: boolean; /** Options forwarded to `ctx.fetch`. Defaults to `GET`. */ fetch?: FetchInit; }; /** * Session-gated remote store: skips when signed out, treats 401 as `null`, * and fetches on mount by default. */ declare function createAuthStore(options: CreateAuthStoreOptions): DataStore; //#endregion export { CreateAuthStoreOptions, createAuthStore };