import { z } from 'zod'; import { label } from '../label'; import { optional } from '../optional'; import { telem } from '../telem'; import { zod } from '../zod'; export declare const VARIANTS: readonly ["success", "info", "warning", "error", "loading", "disabled"]; export declare const variantZ: z.ZodEnum<{ success: "success"; error: "error"; info: "info"; warning: "warning"; loading: "loading"; disabled: "disabled"; }>; export declare const successVariantZ: z.ZodLiteral<"success">; export declare const infoVariantZ: z.ZodLiteral<"info">; export declare const warningVariantZ: z.ZodLiteral<"warning">; export declare const errorVariantZ: z.ZodLiteral<"error">; export declare const loadingVariantZ: z.ZodLiteral<"loading">; export declare const disabledVariantZ: z.ZodLiteral<"disabled">; export type Variant = z.infer; export interface StatusSchemas
= z.ZodType> { details: Details; v: V; } export type StatusZodObject
= typeof variantZ> = z.ZodObject<{ key: z.ZodDefault; name: z.ZodDefault; variant: V; message: z.ZodString; description: z.ZodOptional; time: z.ZodDefault; labels: ReturnType>>; details: [Details] extends [z.ZodNever] ? z.ZodOptional : Details; }>; export interface StatusZFunction {
= typeof variantZ>(args: { details?: Details; v?: V; }): StatusZodObject;
= typeof variantZ>(args?: Partial>): StatusZodObject; } export declare const statusZ: StatusZFunction; export type Status
= typeof variantZ> = { key: string; name: string; variant: z.infer; message: string; description?: string; time: telem.TimeStamp; labels?: label.Label[]; } & ([Details] extends [z.ZodNever] ? {} : { details: z.infer
; }); export interface NewSchemas
= z.ZodType> { details: Details; v: V; } export declare const newZ:
= typeof variantZ>({ details, v }?: Partial>) => z.ZodObject<{ key: z.ZodOptional>; name: z.ZodOptional>; variant: V; message: z.ZodString; description: z.ZodOptional; time: z.ZodOptional, z.ZodPipe, z.ZodTransform>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe, z.ZodTransform>, z.ZodPipe, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform>]>>>; labels: ReturnType>>; details: [Details] extends [z.ZodNever] ? z.ZodOptional : Details; }, z.core.$strip>; export type New
= typeof variantZ> = optional.Optional, "key" | "name" | "time">; //# sourceMappingURL=types.gen.d.ts.map