import { z } from 'zod'; export declare const tenantIdKey = "tenant_id"; export declare const oidcRoutes: Readonly<{ readonly codeVerification: "/oidc/device"; }>; export declare const customClientMetadataDefault: Readonly<{ readonly idTokenTtl: number; readonly refreshTokenTtlInDays: 14; readonly rotateRefreshToken: true; }>; export declare enum ExtraParamsKey { /** * @deprecated Use {@link FirstScreen} instead. * @see {@link InteractionMode} for the available values. */ InteractionMode = "interaction_mode", /** * The first screen to show for the user. * * @see {@link FirstScreen} for the available values. */ FirstScreen = "first_screen", /** * Directly sign in via the specified method. Note that the method must be properly configured * in Logto. * * @remark * The format of the value for this key is one of the following: * * - `social:` (Use a social connector with the specified target, e.g. `social:google`) * - `sso:` (Use the specified SSO connector, e.g. `sso:123456`) */ DirectSignIn = "direct_sign_in", /** * Override the default sign-in experience configuration with the settings from the specified * organization ID. */ OrganizationId = "organization_id", /** * Provides a hint about the login identifier the user might use. * This can be used to pre-fill the identifier field **only on the first screen** of the sign-in/sign-up flow. */ LoginHint = "login_hint", /** * The end-users preferred languages to use for the client application, represented as a space-separated list of BCP47 language tags. * E.g. `en` or `en-US` or `en-US en`. * * @see {@link https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.13.2.1} */ UiLocales = "ui_locales", /** * Specifies the identifier used in the identifier sign-in or identifier register page. * * This parameter is applicable only when first_screen is set to either `FirstScreen.IdentifierSignIn` or `FirstScreen.IdentifierRegister`. * Multiple identifiers can be provided in the identifier parameter, separated by spaces. * * If the provided identifier is not supported in the Logto sign-in experience configuration, it will be ignored, * and if no one of them is supported, it will fallback to the sign-in / sign-up method value set in the sign-in experience configuration. * * @see {@link SignInIdentifier} for available values. */ Identifier = "identifier", /** * The one-time token used as a proof for the user's identity. Example use case: Magic link. */ OneTimeToken = "one_time_token", /** * The Google One Tap credential JWT token for external website integration. */ GoogleOneTapCredential = "google_one_tap_credential" } /** @deprecated Use {@link FirstScreen} instead. */ export declare enum InteractionMode { SignIn = "signIn", SignUp = "signUp" } export declare enum FirstScreen { SignIn = "sign_in", Register = "register", ResetPassword = "reset_password", IdentifierSignIn = "identifier:sign_in", IdentifierRegister = "identifier:register", SingleSignOn = "single_sign_on", /** @deprecated Use snake_case 'sign_in' instead. */ SignInDeprecated = "signIn" } export declare const extraParamsObjectGuard: z.ZodObject<{ interaction_mode: z.ZodOptional>; first_screen: z.ZodOptional>; direct_sign_in: z.ZodOptional; organization_id: z.ZodOptional; login_hint: z.ZodOptional; ui_locales: z.ZodOptional; identifier: z.ZodOptional; one_time_token: z.ZodOptional; google_one_tap_credential: z.ZodOptional; }, "strip", z.ZodTypeAny, { interaction_mode?: InteractionMode | undefined; first_screen?: FirstScreen | undefined; direct_sign_in?: string | undefined; organization_id?: string | undefined; login_hint?: string | undefined; ui_locales?: string | undefined; identifier?: string | undefined; one_time_token?: string | undefined; google_one_tap_credential?: string | undefined; }, { interaction_mode?: InteractionMode | undefined; first_screen?: FirstScreen | undefined; direct_sign_in?: string | undefined; organization_id?: string | undefined; login_hint?: string | undefined; ui_locales?: string | undefined; identifier?: string | undefined; one_time_token?: string | undefined; google_one_tap_credential?: string | undefined; }>; export type ExtraParamsObject = Partial<{ [ExtraParamsKey.InteractionMode]: InteractionMode; [ExtraParamsKey.FirstScreen]: FirstScreen; [ExtraParamsKey.DirectSignIn]: string; [ExtraParamsKey.OrganizationId]: string; [ExtraParamsKey.LoginHint]: string; [ExtraParamsKey.UiLocales]: string; [ExtraParamsKey.Identifier]: string; [ExtraParamsKey.OneTimeToken]: string; [ExtraParamsKey.GoogleOneTapCredential]: string; }>;