import type { AuthResponse } from "prostgles-types"; import { type AuthHandler } from "../AuthHandler"; import type { AuthClientRequest, AuthResultOrError, AuthResultWithSID } from "../AuthTypes"; export type GetUserOrRedirected = AuthResultWithSID | "new-session-redirect"; /** * For a given request return the user data if available using the auth handler's getUser method. * Use cache data if configured in Auth * Used in Publish Parser and AuthHandler */ export declare function handleGetUserThrottled(this: AuthHandler, clientReq: AuthClientRequest): Promise; export declare const isAuthError: (dataOrError: AuthResultOrError) => dataOrError is AuthResponse.AuthFailure["code"] | AuthResponse.AuthFailure; //# sourceMappingURL=handleGetUser.d.ts.map