/** * * 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 { Writable } from 'svelte/store'; export declare const urlRegex: RegExp; export declare const themeSchema: z.ZodObject<{ primaryColor: z.ZodCatch>; primaryOffColor: z.ZodCatch>; secondaryColor: z.ZodCatch>; backgroundColor: z.ZodCatch>; linkColor: z.ZodCatch>; linkActiveColor: z.ZodCatch>; logo: z.ZodCatch>; favicon: z.ZodCatch>; logoHeight: z.ZodOptional; fontFamily: z.ZodCatch>; buttonBorderRadius: z.ZodOptional; cardBorderRadius: z.ZodOptional; cardBgColor: z.ZodCatch>; inputBgColor: z.ZodCatch>; inputBorderColor: z.ZodCatch>; inputLabelColor: z.ZodCatch>; inputFocusRingColor: z.ZodCatch>; selectAccentColor: z.ZodCatch>; selectHoverBgColor: z.ZodCatch>; buttonFocusRingColor: z.ZodCatch>; inputTextColor: z.ZodCatch>; cardTextColor: z.ZodCatch>; bodyTextColor: z.ZodCatch>; buttonTextColor: z.ZodCatch>; }, z.core.$strict>; export type ThemeObject = z.infer; export declare const logoSchema: z.ZodObject<{ dark: z.ZodOptional; height: z.ZodOptional; light: z.ZodOptional; width: z.ZodOptional; }, z.core.$strict>; export declare const styleSchema: z.ZodObject<{ checksAndRadios: z.ZodOptional, z.ZodLiteral<"standard">]>>; labels: z.ZodOptional>, z.ZodLiteral<"stacked">]>>; showPassword: z.ZodOptional, z.ZodLiteral<"button">, z.ZodLiteral<"checkbox">]>>; logo: z.ZodOptional; height: z.ZodOptional; light: z.ZodOptional; width: z.ZodOptional; }, z.core.$strict>>; sections: z.ZodOptional; }, z.core.$strict>>; stage: z.ZodOptional; }, z.core.$strict>>; theme: z.ZodOptional>; primaryOffColor: z.ZodCatch>; secondaryColor: z.ZodCatch>; backgroundColor: z.ZodCatch>; linkColor: z.ZodCatch>; linkActiveColor: z.ZodCatch>; logo: z.ZodCatch>; favicon: z.ZodCatch>; logoHeight: z.ZodOptional; fontFamily: z.ZodCatch>; buttonBorderRadius: z.ZodOptional; cardBorderRadius: z.ZodOptional; cardBgColor: z.ZodCatch>; inputBgColor: z.ZodCatch>; inputBorderColor: z.ZodCatch>; inputLabelColor: z.ZodCatch>; inputFocusRingColor: z.ZodCatch>; selectAccentColor: z.ZodCatch>; selectHoverBgColor: z.ZodCatch>; buttonFocusRingColor: z.ZodCatch>; inputTextColor: z.ZodCatch>; cardTextColor: z.ZodCatch>; bodyTextColor: z.ZodCatch>; buttonTextColor: z.ZodCatch>; }, z.core.$strict>>; }, z.core.$strict>; export declare const partialStyleSchema: z.ZodObject<{ checksAndRadios: z.ZodOptional, z.ZodLiteral<"standard">]>>>; labels: z.ZodOptional>, z.ZodLiteral<"stacked">]>>>; showPassword: z.ZodOptional, z.ZodLiteral<"button">, z.ZodLiteral<"checkbox">]>>>; logo: z.ZodOptional; height: z.ZodOptional; light: z.ZodOptional; width: z.ZodOptional; }, z.core.$strict>>>; sections: z.ZodOptional; }, z.core.$strict>>>; stage: z.ZodOptional; }, z.core.$strict>>>; theme: z.ZodOptional>; primaryOffColor: z.ZodCatch>; secondaryColor: z.ZodCatch>; backgroundColor: z.ZodCatch>; linkColor: z.ZodCatch>; linkActiveColor: z.ZodCatch>; logo: z.ZodCatch>; favicon: z.ZodCatch>; logoHeight: z.ZodOptional; fontFamily: z.ZodCatch>; buttonBorderRadius: z.ZodOptional; cardBorderRadius: z.ZodOptional; cardBgColor: z.ZodCatch>; inputBgColor: z.ZodCatch>; inputBorderColor: z.ZodCatch>; inputLabelColor: z.ZodCatch>; inputFocusRingColor: z.ZodCatch>; selectAccentColor: z.ZodCatch>; selectHoverBgColor: z.ZodCatch>; buttonFocusRingColor: z.ZodCatch>; inputTextColor: z.ZodCatch>; cardTextColor: z.ZodCatch>; bodyTextColor: z.ZodCatch>; buttonTextColor: z.ZodCatch>; }, z.core.$strict>>>; }, z.core.$strict>; /** Convenience type alias for the resolved widget style object. */ export type StyleObject = z.infer; export declare const styleStore: Writable>; /** * @function initialize - Initialize the style store * @param {object} customStyle - An object of custom styles to merge with the default * @returns {object} - The style store * @example initialize({ checksAndRadios: 'standard' }); */ export declare function initialize(customStyle?: z.infer): Writable<{ checksAndRadios?: "animated" | "standard" | undefined; labels?: "floating" | "stacked" | undefined; showPassword?: "none" | "button" | "checkbox" | undefined; logo?: { dark?: string | undefined; height?: number | undefined; light?: string | undefined; width?: number | undefined; } | undefined; sections?: { header?: boolean | undefined; } | undefined; stage?: { icon?: boolean | undefined; } | undefined; theme?: { primaryColor?: string | undefined; primaryOffColor?: string | undefined; secondaryColor?: string | undefined; backgroundColor?: string | undefined; linkColor?: string | undefined; linkActiveColor?: string | undefined; logo?: string | undefined; favicon?: string | undefined; logoHeight?: number | undefined; fontFamily?: string | undefined; buttonBorderRadius?: number | undefined; cardBorderRadius?: number | undefined; cardBgColor?: string | undefined; inputBgColor?: string | undefined; inputBorderColor?: string | undefined; inputLabelColor?: string | undefined; inputFocusRingColor?: string | undefined; selectAccentColor?: string | undefined; selectHoverBgColor?: string | undefined; buttonFocusRingColor?: string | undefined; inputTextColor?: string | undefined; cardTextColor?: string | undefined; bodyTextColor?: string | undefined; buttonTextColor?: string | undefined; } | undefined; }>;