import picomatch from "picomatch"; import * as z from "zod"; //#region src/shapes.d.ts declare const Message: z.ZodObject<{ message: z.ZodString; translation: z.ZodOptional; id: z.ZodOptional; context: z.ZodOptional; comments: z.ZodArray; references: z.ZodArray; }, z.core.$strip>; type Message = z.infer; declare const Formatter: z.ZodObject<{ extension: z.ZodTemplateLiteral<`.${string}`>; parse: z.ZodCustom<(content: string) => Message[], (content: string) => Message[]>; stringify: z.ZodCustom<(messages: Message[], context: { locale: string; existingContent?: string; }) => string, (messages: Message[], context: { locale: string; existingContent?: string; }) => string>; }, z.core.$strip>; type Formatter = z.infer; declare const Transformer: z.ZodObject<{ match: z.ZodCustom<(id: string) => boolean, (id: string) => boolean>; extract: z.ZodCustom<(code: string, id: string) => Message[], (code: string, id: string) => Message[]>; transform: z.ZodCustom<(code: string, id: string) => string, (code: string, id: string) => string>; }, z.core.$strip>; type Transformer = z.infer; /** * A message declared in the config rather than found in source. The shorthand * is the source string; the object form adds the metadata a descriptor would * otherwise carry. */ declare const DeclaredMessage: z.ZodUnion<[z.ZodString, z.ZodObject<{ message: z.ZodString; context: z.ZodOptional; comments: z.ZodOptional>; }, z.core.$strip>]>; type DeclaredMessage = z.infer; declare const Bucket: z.ZodPipe; exclude: z.ZodOptional>; output: z.ZodTemplateLiteral<`${string}{locale}${string}.{extension}`>; messages: z.ZodOptional; comments: z.ZodOptional>; }, z.core.$strip>]>>>; formatter: z.ZodObject<{ extension: z.ZodTemplateLiteral<`.${string}`>; parse: z.ZodCustom<(content: string) => Message[], (content: string) => Message[]>; stringify: z.ZodCustom<(messages: Message[], context: { locale: string; existingContent?: string; }) => string, (messages: Message[], context: { locale: string; existingContent?: string; }) => string>; }, z.core.$strip>; transformer: z.ZodPipe boolean, (id: string) => boolean>; extract: z.ZodCustom<(code: string, id: string) => Message[], (code: string, id: string) => Message[]>; transform: z.ZodCustom<(code: string, id: string) => string, (code: string, id: string) => string>; }, z.core.$strip>, z.ZodTransform<{ match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }[], { match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }>>, z.ZodArray boolean, (id: string) => boolean>; extract: z.ZodCustom<(code: string, id: string) => Message[], (code: string, id: string) => Message[]>; transform: z.ZodCustom<(code: string, id: string) => string, (code: string, id: string) => string>; }, z.core.$strip>>]>, z.ZodTransform<{ match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }, { match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }[]>>; }, z.core.$strip>, z.ZodTransform<{ messages: { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; match: (id: string) => boolean; output: `${string}{locale}${string}.{extension}` & { match: picomatch.Matcher; }; include: string[]; formatter: { extension: `.${string}`; parse: (content: string) => Message[]; stringify: (messages: Message[], context: { locale: string; existingContent?: string; }) => string; }; transformer: { match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }; exclude?: string[] | undefined; }, { include: string[]; output: `${string}{locale}${string}.{extension}`; formatter: { extension: `.${string}`; parse: (content: string) => Message[]; stringify: (messages: Message[], context: { locale: string; existingContent?: string; }) => string; }; transformer: { match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }; exclude?: string[] | undefined; messages?: Record | undefined; }>>; type Bucket = z.infer; declare const Config: z.ZodObject<{ locales: z.ZodTuple<[z.ZodString], z.ZodString>; fallbackLocales: z.ZodOptional]>>>; buckets: z.ZodArray; exclude: z.ZodOptional>; output: z.ZodTemplateLiteral<`${string}{locale}${string}.{extension}`>; messages: z.ZodOptional; comments: z.ZodOptional>; }, z.core.$strip>]>>>; formatter: z.ZodObject<{ extension: z.ZodTemplateLiteral<`.${string}`>; parse: z.ZodCustom<(content: string) => Message[], (content: string) => Message[]>; stringify: z.ZodCustom<(messages: Message[], context: { locale: string; existingContent?: string; }) => string, (messages: Message[], context: { locale: string; existingContent?: string; }) => string>; }, z.core.$strip>; transformer: z.ZodPipe boolean, (id: string) => boolean>; extract: z.ZodCustom<(code: string, id: string) => Message[], (code: string, id: string) => Message[]>; transform: z.ZodCustom<(code: string, id: string) => string, (code: string, id: string) => string>; }, z.core.$strip>, z.ZodTransform<{ match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }[], { match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }>>, z.ZodArray boolean, (id: string) => boolean>; extract: z.ZodCustom<(code: string, id: string) => Message[], (code: string, id: string) => Message[]>; transform: z.ZodCustom<(code: string, id: string) => string, (code: string, id: string) => string>; }, z.core.$strip>>]>, z.ZodTransform<{ match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }, { match: (id: string) => boolean; extract: (code: string, id: string) => Message[]; transform: (code: string, id: string) => string; }[]>>; }, z.core.$strip>, z.ZodTransform<{ messages: { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; match: (id: string) => boolean; output: `${string}{locale}${string}.{extension}` & { match: picomatch.Matcher; }; include: string[]; formatter: { extension: `.${string}`; parse: (content: string) => Message[]; stringify: (messages: Message[], context: { locale: string; existingContent?: string; }) => string; }; transformer: { match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }; exclude?: string[] | undefined; }, { include: string[]; output: `${string}{locale}${string}.{extension}`; formatter: { extension: `.${string}`; parse: (content: string) => Message[]; stringify: (messages: Message[], context: { locale: string; existingContent?: string; }) => string; }; transformer: { match: (id: string) => boolean; extract: (code: string, id: string) => { message: string; comments: string[]; references: string[]; translation?: string | undefined; id?: string | undefined; context?: string | undefined; }[]; transform: (code: string, id: string) => string; }; exclude?: string[] | undefined; messages?: Record | undefined; }>>>; }, z.core.$strip>; type Config = z.infer; //#endregion export { Message as a, Formatter as i, Config as n, Transformer as o, DeclaredMessage as r, Bucket as t };