import { CurrentInternalUser, CurrentUser, GetUserOptions, StackClientApp } from "./stack-app"; //#region src/lib/hooks.d.ts type GetUserOptions$1 = GetUserOptions & { projectIdMustMatch?: string; }; /** * Returns the current user object. Equivalent to `useStackApp().useUser()`. * * @returns the current user */ declare function useUser(options: GetUserOptions$1 & { or: 'redirect' | 'throw'; projectIdMustMatch: "internal"; }): CurrentInternalUser; declare function useUser(options: GetUserOptions$1 & { or: 'redirect' | 'throw'; }): CurrentUser; declare function useUser(options: GetUserOptions$1 & { projectIdMustMatch: "internal"; }): CurrentInternalUser | null; declare function useUser(options?: GetUserOptions$1): 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