import { i as ClientUser, r as ClientAuth, t as AuthCondition } from "./shared-CWMH5N-C.js"; //#region src/client.d.ts declare global { interface Window { /** Synchronous auth snapshot injected by the component. */ __AUTHKIT_STATE__?: ClientAuth; } } /** The full client-safe auth state. */ declare const $auth: import("nanostores").PreinitializedWritableAtom & object; /** * Whether the store has been hydrated. Until this is `true`, a signed-out * `$auth` may just mean "not loaded yet" — use it to avoid flashing * "signed out" UI. Synchronous (``) hydration sets it at startup. */ declare const $isLoaded: import("nanostores").PreinitializedWritableAtom & object; /** The signed-in user, or `null`. */ declare const $user: import("nanostores").ReadableAtom; /** Whether a user is signed in. */ declare const $signedIn: import("nanostores").ReadableAtom; /** The active organization id, or `null`. */ declare const $organizationId: import("nanostores").ReadableAtom; /** The user's role in the active organization, or `null`. */ declare const $role: import("nanostores").ReadableAtom; /** The user's permissions in the active organization. */ declare const $permissions: import("nanostores").ReadableAtom; /** Replace the store's value (e.g. after a client-side navigation). */ declare function setAuthState(state: ClientAuth): void; /** Options for {@link hydrateAuth}. */ interface HydrateAuthOptions { /** Skip the `` snapshot and re-fetch from the session endpoint * (used after client-side navigations, where the snapshot may be stale). */ refresh?: boolean; } /** * Populate the store from the server. Uses the synchronous snapshot from * `` when present; otherwise fetches the session endpoint * (default `/_authkit/me`, injected by the integration). */ declare function hydrateAuth(endpoint?: string, options?: HydrateAuthOptions): Promise; //#endregion export { $auth, $isLoaded, $organizationId, $permissions, $role, $signedIn, $user, type AuthCondition, type ClientAuth, type ClientUser, HydrateAuthOptions, hydrateAuth, setAuthState }; //# sourceMappingURL=client.d.ts.map