import { s as GetCurrentUserOptions } from "./common-B3bYYs1i.js"; import { a as StackClientApp, gt as CurrentUser, mt as CurrentInternalUser } from "./client-app-C3XlvCgv.js"; //#region src/lib/hooks.d.ts type GetUserOptions = GetCurrentUserOptions & { projectIdMustMatch?: string; }; /** * Returns the current user object. Equivalent to `useStackApp().useUser()`. * * @returns the current user */ declare function useUser(options: GetUserOptions & { or: 'redirect' | 'throw'; projectIdMustMatch: "internal"; }): CurrentInternalUser; declare function useUser(options: GetUserOptions & { or: 'redirect' | 'throw'; }): CurrentUser; declare function useUser(options: GetUserOptions & { projectIdMustMatch: "internal"; }): CurrentInternalUser | null; declare function useUser(options?: GetUserOptions): CurrentUser | CurrentInternalUser | null; /** * Returns the current Hexclave app associated with the HexclaveProvider. * * @returns the current Hexclave app */ declare function useHexclaveApp(options?: { projectIdMustMatch?: ProjectId; }): StackClientApp; /** * Returns the current Stack app associated with the StackProvider. * * @deprecated Use `useHexclaveApp` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. * * @returns the current Stack app */ declare function useStackApp(options?: { projectIdMustMatch?: ProjectId; }): StackClientApp; //#endregion export { useStackApp as n, useUser as r, useHexclaveApp as t }; //# sourceMappingURL=hooks-BPxeU_j8.d.ts.map