/** * * Copyright © 2025-2026 Ping Identity Corporation. All right reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * **/ import { z } from 'zod'; import type { CustomLogger, GenericError, RequestMiddleware } from '@forgerock/oidc-client/types'; /** * Runtime validation for the widget's top-level options; `serverConfig`, `logger`, `middleware` * All three reach both the journey and OIDC clients */ export declare const serverConfigSchema: z.ZodObject<{ wellknown: z.ZodString; }, z.core.$strict>; export declare const loggerConfigSchema: z.ZodObject<{ level: z.ZodUnion, z.ZodLiteral<"error">, z.ZodLiteral<"warn">, z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>; custom: z.ZodOptional>; }, z.core.$strict>; export declare const middlewareSchema: z.ZodArray>; export declare const storageConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodUnion, z.ZodLiteral<"sessionStorage">]>; name: z.ZodString; prefix: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"custom">; name: z.ZodString; prefix: z.ZodOptional; custom: z.ZodObject<{ get: z.ZodCustom<(key: string) => Promise, (key: string) => Promise>; set: z.ZodCustom<(key: string, value: string) => Promise, (key: string, value: string) => Promise>; remove: z.ZodCustom<(key: string) => Promise, (key: string) => Promise>; }, z.core.$strip>; }, z.core.$strip>], "type">;