import { GetCurrentUserOptions } from "./stack-app/common.js"; import { CurrentInternalUser, CurrentUser } from "./stack-app/users/index.js"; import { StackClientApp } from "./stack-app/apps/interfaces/client-app.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 Stack app associated with the StackProvider. * * @returns the current Stack app */ declare function useStackApp(options?: { projectIdMustMatch?: ProjectId; }): StackClientApp; //#endregion export { useStackApp, useUser }; //# sourceMappingURL=hooks.d.ts.map