import { StandardSchemaV1 } from "@standard-schema/spec"; //#region src/parser.d.ts type ParseFn = (content: string) => Record | Promise>; type Parser = { hasContent: boolean; parse: ParseFn; }; type PredefinedParsers = typeof parsers; type PredefinedParser = keyof typeof parsers; type ConfiguredParser = PredefinedParser | Parser; declare function parseYaml(content: string): any; declare function frontmatterParser(fileContent: string): { content: string; }; declare function frontmatterOnlyParser(fileContent: string): { [key: string]: any; }; declare const parsers: { frontmatter: { hasContent: true; parse: typeof frontmatterParser; }; "frontmatter-only": { hasContent: false; parse: typeof frontmatterOnlyParser; }; json: { hasContent: false; parse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any; }; yaml: { hasContent: false; parse: typeof parseYaml; }; }; type DefineParserResult = TArgument extends Function ? { hasContent: false; parse: ParseFn; } : TArgument extends infer Parser ? Parser : never; declare function defineParser(parser: TArgument): DefineParserResult; //#endregion //#region src/cache.d.ts type Options$2 = { key: string; }; type CacheFn = (input: TInput, compute: (input: TInput) => Promise | TOutput, options?: Options$2) => Promise; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/standard-schema.d.cts /** The Standard Schema interface. */ interface StandardSchemaV1$1 { /** The Standard Schema properties. */ readonly "~standard": StandardSchemaV1$1.Props; } declare namespace StandardSchemaV1$1 { /** The Standard Schema properties interface. */ interface Props { /** The version number of the standard. */ readonly version: 1; /** The vendor name of the schema library. */ readonly vendor: string; /** Validates unknown input values. */ readonly validate: (value: unknown) => Result | Promise>; /** Inferred types associated with the schema. */ readonly types?: Types | undefined; } /** The result interface of the validate function. */ type Result = SuccessResult | FailureResult; /** The result interface if validation succeeds. */ interface SuccessResult { /** The typed output value. */ readonly value: Output; /** The non-existent issues. */ readonly issues?: undefined; } /** The result interface if validation fails. */ interface FailureResult { /** The issues of failed validation. */ readonly issues: ReadonlyArray; } /** The issue interface of the failure output. */ interface Issue { /** The error message of the issue. */ readonly message: string; /** The path of the issue, if any. */ readonly path?: ReadonlyArray | undefined; } /** The path segment interface of the issue. */ interface PathSegment { /** The key representing a path segment. */ readonly key: PropertyKey; } /** The Standard Schema types interface. */ interface Types { /** The input type of the schema. */ readonly input: Input; /** The output type of the schema. */ readonly output: Output; } /** Infers the input type of a Standard Schema. */ type InferInput = NonNullable["input"]; /** Infers the output type of a Standard Schema. */ type InferOutput = NonNullable["output"]; } //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/util.d.cts type IsAny = 0 extends 1 & T$1 ? true : false; type Omit$1 = Pick>; type MakePartial = Omit$1 & InexactPartial>; type LoosePartial = InexactPartial & { [k: string]: unknown; }; type InexactPartial = { [P in keyof T$1]?: T$1[P] | undefined }; type Identity = T$1; type Flatten = Identity<{ [k in keyof T$1]: T$1[k] }>; type Prettify$1 = { [K in keyof T$1]: T$1[K] } & {}; type AnyFunc = (...args: any[]) => any; type MaybeAsync = T$1 | Promise; type Literal$1 = string | number | bigint | boolean | null | undefined; type Primitive = string | number | symbol | bigint | boolean | null | undefined; type SafeParseResult = SafeParseSuccess | SafeParseError; type SafeParseSuccess = { success: true; data: T$1; error?: never; }; type SafeParseError = { success: false; data?: never; error: $ZodError; }; type PropValues = Record>; type PrimitiveSet = Set; declare abstract class Class { constructor(..._args: any[]); } //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/versions.d.cts declare const version: { readonly major: 4; readonly minor: 1; readonly patch: number; }; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/schemas.d.cts interface ParseContext { /** Customize error messages. */ readonly error?: $ZodErrorMap; /** Include the `input` field in issue objects. Default `false`. */ readonly reportInput?: boolean; /** Skip eval-based fast path. Default `false`. */ readonly jitless?: boolean; } /** @internal */ interface ParseContextInternal extends ParseContext { readonly async?: boolean | undefined; readonly direction?: "forward" | "backward"; readonly skipChecks?: boolean; } interface ParsePayload { value: T$1; issues: $ZodRawIssue[]; /** A may to mark a whole payload as aborted. Used in codecs/pipes. */ aborted?: boolean; } type CheckFn = (input: ParsePayload) => MaybeAsync; interface $ZodTypeDef { type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom"; error?: $ZodErrorMap | undefined; checks?: $ZodCheck[]; } interface _$ZodTypeInternals { /** The `@zod/core` version of this schema */ version: typeof version; /** Schema definition. */ def: $ZodTypeDef; /** @internal Randomly generated ID for this schema. */ /** @internal List of deferred initializers. */ deferred: AnyFunc[] | undefined; /** @internal Parses input and runs all checks (refinements). */ run(payload: ParsePayload, ctx: ParseContextInternal): MaybeAsync; /** @internal Parses input, doesn't run checks. */ parse(payload: ParsePayload, ctx: ParseContextInternal): MaybeAsync; /** @internal Stores identifiers for the set of traits implemented by this schema. */ traits: Set; /** @internal Indicates that a schema output type should be considered optional inside objects. * @default Required */ /** @internal */ optin?: "optional" | undefined; /** @internal */ optout?: "optional" | undefined; /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record(). * * Defined on: enum, const, literal, null, undefined * Passthrough: optional, nullable, branded, default, catch, pipe * Todo: unions? */ values?: PrimitiveSet | undefined; /** Default value bubbled up from */ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */ propValues?: PropValues | undefined; /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */ pattern: RegExp | undefined; /** @internal The constructor function of this schema. */ constr: new (def: any) => $ZodType; /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */ bag: Record; /** @internal The set of issues this schema might throw during type checking. */ isst: $ZodIssueBase; /** An optional method used to override `toJSONSchema` logic. */ toJSONSchema?: () => unknown; /** @internal The parent of this schema. Only set during certain clone operations. */ parent?: $ZodType | undefined; } /** @internal */ interface $ZodTypeInternals extends _$ZodTypeInternals { /** @internal The inferred output type */ output: O; /** @internal The inferred input type */ input: I; } type $ZodStandardSchema = StandardSchemaV1$1.Props, output>; type SomeType$1 = { _zod: _$ZodTypeInternals; }; interface $ZodType = $ZodTypeInternals> { _zod: Internals; "~standard": $ZodStandardSchema; } interface _$ZodType extends $ZodType {} declare const $ZodType: $constructor<$ZodType>; interface $ZodStringDef extends $ZodTypeDef { type: "string"; coerce?: boolean; checks?: $ZodCheck[]; } interface $ZodStringInternals extends $ZodTypeInternals { def: $ZodStringDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; patterns: Set; format: string; contentEncoding: string; }>; } interface $ZodString extends _$ZodType<$ZodStringInternals> {} declare const $ZodString: $constructor<$ZodString>; interface $ZodNumberDef extends $ZodTypeDef { type: "number"; coerce?: boolean; } interface $ZodNumberInternals extends $ZodTypeInternals { def: $ZodNumberDef; /** @deprecated Internal API, use with caution (not deprecated) */ pattern: RegExp; /** @deprecated Internal API, use with caution (not deprecated) */ isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: number; maximum: number; exclusiveMinimum: number; exclusiveMaximum: number; format: string; pattern: RegExp; }>; } interface $ZodNumber extends $ZodType { _zod: $ZodNumberInternals; } declare const $ZodNumber: $constructor<$ZodNumber>; interface $ZodBooleanDef extends $ZodTypeDef { type: "boolean"; coerce?: boolean; checks?: $ZodCheck[]; } interface $ZodBooleanInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodBooleanDef; isst: $ZodIssueInvalidType; } interface $ZodBigIntDef extends $ZodTypeDef { type: "bigint"; coerce?: boolean; } interface $ZodBigIntInternals extends $ZodTypeInternals { pattern: RegExp; /** @internal Internal API, use with caution */ def: $ZodBigIntDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: bigint; maximum: bigint; format: string; }>; } interface $ZodBigInt extends $ZodType { _zod: $ZodBigIntInternals; } declare const $ZodBigInt: $constructor<$ZodBigInt>; interface $ZodUndefinedDef extends $ZodTypeDef { type: "undefined"; } interface $ZodUndefinedInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodUndefinedDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodNullDef extends $ZodTypeDef { type: "null"; } interface $ZodNullInternals extends $ZodTypeInternals { pattern: RegExp; def: $ZodNullDef; values: PrimitiveSet; isst: $ZodIssueInvalidType; } interface $ZodUnknownDef extends $ZodTypeDef { type: "unknown"; } interface $ZodUnknownInternals extends $ZodTypeInternals { def: $ZodUnknownDef; isst: never; } interface $ZodDateDef extends $ZodTypeDef { type: "date"; coerce?: boolean; } interface $ZodDateInternals extends $ZodTypeInternals { def: $ZodDateDef; isst: $ZodIssueInvalidType; bag: LoosePartial<{ minimum: Date; maximum: Date; format: string; }>; } type OptionalOutSchema = { _zod: { optout: "optional"; }; }; type OptionalInSchema = { _zod: { optin: "optional"; }; }; type $InferObjectOutput> = string extends keyof T$1 ? IsAny extends true ? Record : Record> : keyof (T$1 & Extra) extends never ? Record : Prettify$1<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>; type $InferObjectInput> = string extends keyof T$1 ? IsAny extends true ? Record : Record> : keyof (T$1 & Extra) extends never ? Record : Prettify$1<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>; type $ZodObjectConfig = { out: Record; in: Record; }; type $strip = { out: {}; in: {}; }; type $ZodShape = Readonly<{ [k: string]: $ZodType; }>; interface $ZodObjectDef extends $ZodTypeDef { type: "object"; shape: Shape; catchall?: $ZodType | undefined; } interface $ZodObjectInternals< /** @ts-ignore Cast variance */ out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals { def: $ZodObjectDef; config: Config; isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys; propValues: PropValues; output: $InferObjectOutput; input: $InferObjectInput; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $ZodLooseShape = Record; interface $ZodObject< /** @ts-ignore Cast variance */ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType> { "~standard": $ZodStandardSchema; } declare const $ZodObject: $constructor<$ZodObject>; type $InferUnionOutput = T$1 extends any ? output : never; type $InferUnionInput = T$1 extends any ? input : never; interface $ZodUnionDef extends $ZodTypeDef { type: "union"; options: Options$3; } type IsOptionalIn = T$1 extends OptionalInSchema ? true : false; type IsOptionalOut = T$1 extends OptionalOutSchema ? true : false; interface $ZodUnionInternals extends _$ZodTypeInternals { def: $ZodUnionDef; isst: $ZodIssueInvalidUnion; pattern: T$1[number]["_zod"]["pattern"]; values: T$1[number]["_zod"]["values"]; output: $InferUnionOutput; input: $InferUnionInput; optin: IsOptionalIn extends false ? "optional" | undefined : "optional"; optout: IsOptionalOut extends false ? "optional" | undefined : "optional"; } type $ZodRecordKey = $ZodType; interface $ZodRecordDef extends $ZodTypeDef { type: "record"; keyType: Key; valueType: Value; } type $InferZodRecordOutput = Key extends $partial ? Partial, output>> : Record, output>; type $InferZodRecordInput = Key extends $partial ? Partial, input>> : Record, input>; interface $ZodRecordInternals extends $ZodTypeInternals<$InferZodRecordOutput, $InferZodRecordInput> { def: $ZodRecordDef; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey>; optin?: "optional" | undefined; optout?: "optional" | undefined; } type $partial = { "~~partial": true; }; interface $ZodMapDef extends $ZodTypeDef { type: "map"; keyType: Key; valueType: Value; } interface $ZodMapInternals extends $ZodTypeInternals, output>, Map, input>> { def: $ZodMapDef; isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodSetDef extends $ZodTypeDef { type: "set"; valueType: T$1; } interface $ZodSetInternals extends $ZodTypeInternals>, Set>> { def: $ZodSetDef; isst: $ZodIssueInvalidType; optin?: "optional" | undefined; optout?: "optional" | undefined; } interface $ZodLiteralDef extends $ZodTypeDef { type: "literal"; values: T$1[]; } interface $ZodLiteralInternals extends $ZodTypeInternals { def: $ZodLiteralDef; values: Set; pattern: RegExp; isst: $ZodIssueInvalidValue; } interface $ZodOptionalDef extends $ZodTypeDef { type: "optional"; innerType: T$1; } interface $ZodOptionalInternals extends $ZodTypeInternals | undefined, input | undefined> { def: $ZodOptionalDef; optin: "optional"; optout: "optional"; isst: never; values: T$1["_zod"]["values"]; pattern: T$1["_zod"]["pattern"]; } interface $ZodOptional extends $ZodType { _zod: $ZodOptionalInternals; } declare const $ZodOptional: $constructor<$ZodOptional>; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/checks.d.cts interface $ZodCheckDef { check: string; error?: $ZodErrorMap | undefined; /** If true, no later checks will be executed if this check fails. Default `false`. */ abort?: boolean | undefined; /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */ when?: ((payload: ParsePayload) => boolean) | undefined; } interface $ZodCheckInternals { def: $ZodCheckDef; /** The set of issues this check might throw. */ issc?: $ZodIssueBase; check(payload: ParsePayload): MaybeAsync; onattach: ((schema: $ZodType) => void)[]; } interface $ZodCheck { _zod: $ZodCheckInternals; } declare const $ZodCheck: $constructor<$ZodCheck>; type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes"; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/errors.d.cts interface $ZodIssueBase { readonly code?: string; readonly input?: unknown; readonly path: PropertyKey[]; readonly message: string; } interface $ZodIssueInvalidType extends $ZodIssueBase { readonly code: "invalid_type"; readonly expected: $ZodType["_zod"]["def"]["type"]; readonly input?: Input; } interface $ZodIssueTooBig extends $ZodIssueBase { readonly code: "too_big"; readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {}); readonly maximum: number | bigint; readonly inclusive?: boolean; readonly exact?: boolean; readonly input?: Input; } interface $ZodIssueTooSmall extends $ZodIssueBase { readonly code: "too_small"; readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {}); readonly minimum: number | bigint; /** True if the allowable range includes the minimum */ readonly inclusive?: boolean; /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */ readonly exact?: boolean; readonly input?: Input; } interface $ZodIssueInvalidStringFormat extends $ZodIssueBase { readonly code: "invalid_format"; readonly format: $ZodStringFormats | (string & {}); readonly pattern?: string; readonly input?: string; } interface $ZodIssueNotMultipleOf extends $ZodIssueBase { readonly code: "not_multiple_of"; readonly divisor: number; readonly input?: Input; } interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase { readonly code: "unrecognized_keys"; readonly keys: string[]; readonly input?: Record; } interface $ZodIssueInvalidUnion extends $ZodIssueBase { readonly code: "invalid_union"; readonly errors: $ZodIssue[][]; readonly input?: unknown; readonly discriminator?: string | undefined; } interface $ZodIssueInvalidKey extends $ZodIssueBase { readonly code: "invalid_key"; readonly origin: "map" | "record"; readonly issues: $ZodIssue[]; readonly input?: Input; } interface $ZodIssueInvalidElement extends $ZodIssueBase { readonly code: "invalid_element"; readonly origin: "map" | "set"; readonly key: unknown; readonly issues: $ZodIssue[]; readonly input?: Input; } interface $ZodIssueInvalidValue extends $ZodIssueBase { readonly code: "invalid_value"; readonly values: Primitive[]; readonly input?: Input; } interface $ZodIssueCustom extends $ZodIssueBase { readonly code: "custom"; readonly params?: Record | undefined; readonly input?: unknown; } type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom; type $ZodInternalIssue = T$1 extends any ? RawIssue : never; type RawIssue = T$1 extends any ? Flatten & { /** The input data */ readonly input: unknown; /** The schema or check that originated this issue. */ readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */ readonly continue?: boolean | undefined; } & Record> : never; type $ZodRawIssue = $ZodInternalIssue; interface $ZodErrorMap { (issue: $ZodRawIssue): { message: string; } | string | undefined | null; } interface $ZodError extends Error { type: T$1; issues: $ZodIssue[]; _zod: { output: T$1; def: $ZodIssue[]; }; stack?: string; name: string; } declare const $ZodError: $constructor<$ZodError>; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/core.d.cts type ZodTrait = { _zod: { def: any; [k: string]: any; }; }; interface $constructor { new (def: D): T$1; init(inst: T$1, def: D): asserts inst is T$1; } declare function $constructor(name: string, initializer: (inst: T$1, def: D) => void, params?: { Parent?: typeof Class; }): $constructor; declare const $brand: unique symbol; type $brand = { [$brand]: { [k in T$1]: true }; }; type input = T$1 extends { _zod: { input: any; }; } ? T$1["_zod"]["input"] : unknown; type output = T$1 extends { _zod: { output: any; }; } ? T$1["_zod"]["output"] : unknown; //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/core/registries.d.cts declare const $output: unique symbol; type $output = typeof $output; declare const $input: unique symbol; type $input = typeof $input; type $replace = Meta$1 extends $output ? output : Meta$1 extends $input ? input : Meta$1 extends (infer M)[] ? $replace[] : Meta$1 extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace }) => $replace : Meta$1 extends object ? { [K in keyof Meta$1]: $replace } : Meta$1; type MetadataType = object | undefined; declare class $ZodRegistry { _meta: Meta$1; _schema: Schema$1; _map: WeakMap>; _idmap: Map; add(schema: S, ..._meta: undefined extends Meta$1 ? [$replace?] : [$replace]): this; clear(): this; remove(schema: Schema$1): this; get(schema: S): $replace | undefined; has(schema: Schema$1): boolean; } //#endregion //#region ../../node_modules/.pnpm/zod@4.1.11/node_modules/zod/v4/mini/schemas.d.cts type SomeType = SomeType$1; interface ZodMiniType = $ZodTypeInternals> extends $ZodType { type: Internals["def"]["type"]; check(...checks: (CheckFn> | $ZodCheck>)[]): this; clone(def?: Internals["def"], params?: { parent: boolean; }): this; register(registry: R$1, ...meta: this extends R$1["_schema"] ? undefined extends R$1["_meta"] ? [$replace?] : [$replace] : ["Incompatible schema"]): this; brand(value?: T$1): PropertyKey extends T$1 ? this : this & Record<"_zod", Record<"output", output & $brand>>; def: Internals["def"]; parse(data: unknown, params?: ParseContext<$ZodIssue>): output; safeParse(data: unknown, params?: ParseContext<$ZodIssue>): SafeParseResult>; parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise>; safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise>>; } interface _ZodMiniType extends ZodMiniType {} declare const ZodMiniType: $constructor; interface _ZodMiniString = $ZodStringInternals> extends _ZodMiniType, $ZodString { _zod: T$1; } interface ZodMiniString extends _ZodMiniString<$ZodStringInternals>, $ZodString {} declare const ZodMiniString: $constructor; interface _ZodMiniNumber = $ZodNumberInternals> extends _ZodMiniType, $ZodNumber { _zod: T$1; } interface ZodMiniNumber extends _ZodMiniNumber<$ZodNumberInternals>, $ZodNumber {} declare const ZodMiniNumber: $constructor; interface ZodMiniBoolean extends _ZodMiniType<$ZodBooleanInternals> {} declare const ZodMiniBoolean: $constructor; interface ZodMiniBigInt extends _ZodMiniType<$ZodBigIntInternals>, $ZodBigInt {} declare const ZodMiniBigInt: $constructor; interface ZodMiniUndefined extends _ZodMiniType<$ZodUndefinedInternals> {} declare const ZodMiniUndefined: $constructor; interface ZodMiniNull extends _ZodMiniType<$ZodNullInternals> {} declare const ZodMiniNull: $constructor; interface ZodMiniUnknown extends _ZodMiniType<$ZodUnknownInternals> {} declare const ZodMiniUnknown: $constructor; interface ZodMiniDate extends _ZodMiniType<$ZodDateInternals> {} declare const ZodMiniDate: $constructor; interface ZodMiniObject< /** @ts-ignore Cast variance */ out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $strip> extends ZodMiniType>, $ZodObject { shape: Shape; } declare const ZodMiniObject: $constructor; interface ZodMiniUnion extends _ZodMiniType<$ZodUnionInternals> {} declare const ZodMiniUnion: $constructor; interface ZodMiniRecord extends _ZodMiniType<$ZodRecordInternals> {} declare const ZodMiniRecord: $constructor; interface ZodMiniMap extends _ZodMiniType<$ZodMapInternals> {} declare const ZodMiniMap: $constructor; interface ZodMiniSet extends _ZodMiniType<$ZodSetInternals> {} declare const ZodMiniSet: $constructor; interface ZodMiniLiteral extends _ZodMiniType<$ZodLiteralInternals> {} declare const ZodMiniLiteral: $constructor; interface ZodMiniOptional extends _ZodMiniType<$ZodOptionalInternals>, $ZodOptional {} declare const ZodMiniOptional: $constructor; //#endregion //#region src/import.d.ts declare const importSchema: ZodMiniObject<{ __cc_import: ZodMiniLiteral; path: ZodMiniString; name: ZodMiniOptional>; }, $strip>; type Import = output & { __type?: T$1; }; type GetTypeOfImport = T$1 extends Import ? U : never; declare function createDefaultImport(path: string): Import; declare function createNamedImport(name: string, path: string): Import; //#endregion //#region src/serializer.d.ts declare const literalSchema: ZodMiniUnion, ZodMiniNumber, ZodMiniBoolean, ZodMiniNull, ZodMiniUndefined, ZodMiniDate, ZodMiniMap, ZodMiniSet, ZodMiniBigInt, ZodMiniObject<{ __cc_import: ZodMiniLiteral; path: ZodMiniString; name: ZodMiniOptional>; }, $strip>]>; type Literal = output; type SchemaType = Literal | { [key: string]: SchemaType; } | ReadonlyArray; type NotSerializableError = `The return type of the transform function must be an object serializable object. See https://www.content-collections.dev/docs/serialization for more information. The following type is not valid:`; declare const serializableSchema: ZodMiniRecord, ZodMiniType>>; type Serializable = output; //#endregion //#region src/configurationReader.d.ts type ErrorType$2 = "Read" | "Compile"; declare class ConfigurationError extends Error { type: ErrorType$2; constructor(type: ErrorType$2, message: string); } type InternalConfiguration = { collections: Array; path: string; inputPaths: Array; checksum: string; hooks: Hooks; generateTypes?: boolean; }; type Options = { configName: string; cacheDir?: string; }; //#endregion //#region src/types.d.ts type Modification = "create" | "update" | "delete"; type Document = { _meta: Meta; }; type CollectionFile = { data: { content?: string; [key: string]: unknown; }; path: string; }; type ConfigurationSources = TConfiguration extends { content: infer TSources extends Array; } ? TSources : TConfiguration extends { collections: infer TSources extends Array; } ? TSources : never; type CollectionByName = { [TCollection in ConfigurationSources[number] as TCollection["name"]]: TCollection }; type GetDocument = TSource extends Collection ? TDocument : TSource extends Singleton ? TDocument : never; type GetTypeByName, TCollection$1 = CollectionByName[TName]> = TCollection$1 extends AnyContent ? GetDocument : never; //#endregion //#region src/transformer.d.ts type TransformerEvents = { "transformer:validation-error": { collection: AnyContent; file: CollectionFile; error: TransformError; }; "transformer:singleton-warning": { collection: AnyContent; }; "transformer:result-error": { collection: AnyContent; document: any; error: TransformError; }; "transformer:error": { collection: AnyContent; error: TransformError; }; "transformer:document-skipped": { collection: AnyContent; filePath: string; reason?: string; }; }; type ErrorType$1 = "Validation" | "Configuration" | "Transform" | "Result"; declare class TransformError extends Error { type: ErrorType$1; constructor(type: ErrorType$1, message: string); } //#endregion //#region src/writer.d.ts type FileType = "data" | "javascript" | "typeDefinition"; type WriterHookContext = { fileType: FileType; content: string; filePath: string; }; type WriterHookResult = { content: string; }; type WriterHook = (ctx: WriterHookContext) => Promise | WriterHookResult; //#endregion //#region src/config.d.ts type Meta = { filePath: string; fileName: string; directory: string; path: string; extension: string; }; type WithContent = { content: string; }; type AddContent = TOutput extends { content: any; } ? TOutput : TOutput & WithContent; type GetParser = TParser extends PredefinedParser ? PredefinedParsers[TParser] : TParser; type HasContent = GetParser["hasContent"]; type TSchemaProp = StandardSchemaV1; type GetOutputShape = TShape extends StandardSchemaV1 ? StandardSchemaV1.InferOutput : never; type GetOutput> = HasContent extends true ? AddContent : TOutput; type Schema = GetOutput & { _meta: Meta; }; type Prettify = { [K in keyof T$1]: T$1[K] } & {}; type GetSchema = TSource extends Collection ? Prettify : TSource extends Singleton ? Prettify : never; declare const skippedSymbol: unique symbol; type SkippedSignal = { [skippedSymbol]: true; reason?: string; }; type Context = { documents(source: TSource): Array>; cache: CacheFn; /** * @deprecated Use `CollectionContext["collection"]` in collection transforms. */ collection: { name: string; directory: string; documents: () => Promise>; }; skip: (reason?: string) => SkippedSignal; }; type CollectionContext = Context & { collection: { name: string; directory: string; documents: () => Promise>; }; }; type SingletonContext = Context & { singleton: { name: string; filePath: string; directory: string; document: () => Promise; }; }; type ContentType = "collection" | "singleton"; type CollectionRequest = { name: TName; parser?: TParser; typeName?: string; schema: TShape; transform?: (data: TSchema$1, context: CollectionContext) => TTransformResult; directory: string; include: string | string[]; exclude?: string | string[]; onSuccess?: (documents: Array) => void | Promise; }; type Collection = Omit, "schema"> & { type: "collection"; typeName: string; schema: StandardSchemaV1; parser: TParser; }; type AnyCollection = Collection; type SingletonRequest = { name: TName; filePath: string; parser?: TParser; typeName?: string; schema: TShape; optional?: boolean; transform?: (data: TSchema$1, context: SingletonContext) => TTransformResult; onSuccess?: (document: TDocument$1 | undefined) => void | Promise; }; type Singleton = Omit, "schema"> & { type: "singleton"; typeName: string; schema: StandardSchemaV1; parser: TParser; }; type AnySingleton = Singleton; type AnyContent = AnyCollection | AnySingleton; declare function isSingleton(source: AnyContent): source is AnySingleton; declare const InvalidReturnTypeSymbol: unique symbol; type InvalidReturnType = { [InvalidReturnTypeSymbol]: TMessage; object: TObject; }; type ResolveImports = TTransformResult extends Import ? GetTypeOfImport : TTransformResult extends Array ? Array> : TTransformResult extends ((...args: any[]) => any) ? TTransformResult : TTransformResult extends (Date | RegExp | Map | Set | WeakMap | WeakSet | Promise) ? TTransformResult : TTransformResult extends object ? { [K in keyof TTransformResult]: ResolveImports } : TTransformResult; declare function defineCollection, TTransformResult = never, TDocument$1 = ([TTransformResult] extends [never] ? Schema : Exclude, SkippedSignal>), TResult = (TDocument$1 extends Serializable ? Collection> : InvalidReturnType)>(collection: CollectionRequest): TResult; declare function defineSingleton, TTransformResult = never, TDocument$1 = ([TTransformResult] extends [never] ? Schema : Exclude, SkippedSignal>), TResult = (TDocument$1 extends Serializable ? Singleton> : InvalidReturnType)>(singleton: SingletonRequest): TResult; type Cache = "memory" | "file" | "none"; type ConfigurationWithContent> = { content: TCollections; /** * @deprecated Use `content` instead. */ collections?: TCollections; cache?: Cache; hooks?: Hooks; }; type ConfigurationWithCollections> = { /** * @deprecated Use `content` instead. */ collections: TCollections; content?: TCollections; cache?: Cache; hooks?: Hooks; }; type Configuration> = ConfigurationWithContent | ConfigurationWithCollections; type AnyConfiguration = Configuration>; type Hooks = { writer?: Array; }; declare function defineConfig>(config: { content: TCollections; cache?: Cache; hooks?: Hooks; }): ConfigurationWithContent; declare function defineConfig>(config: { /** * @deprecated Use `content` instead. */ collections: TCollections; cache?: Cache; hooks?: Hooks; }): ConfigurationWithCollections; //#endregion //#region src/collector.d.ts type CollectorEvents = { "collector:read-error": { filePath: string; error: CollectError; }; "collector:parse-error": { filePath: string; error: CollectError; }; }; type ErrorType = "Parse" | "Read"; declare class CollectError extends Error { type: ErrorType; constructor(type: ErrorType, message: string); } //#endregion //#region src/watcher.d.ts type WatcherEvents = { "watcher:subscribe-error": { paths: Array; error: Error; }; "watcher:subscribed": { paths: Array; }; "watcher:unsubscribed": { paths: Array; }; }; type SyncFn = (modification: Modification, path: string) => Promise; type WatchableCollection = { directory: string; }; type WatcherConfiguration = { inputPaths: Array; collections: Array; }; declare function createWatcher(emitter: Emitter, baseDirectory: string, configuration: WatcherConfiguration, sync: SyncFn): Promise<{ unsubscribe: () => Promise; }>; type Watcher = Awaited>; //#endregion //#region src/events.d.ts type EventMap = Record; type EventWithError = { error: Error; }; type SystemEvent = { _event: string; }; type ErrorEvent = EventWithError & SystemEvent; type Events = BuilderEvents & CollectorEvents & TransformerEvents & WatcherEvents; type SystemEvents = { _error: ErrorEvent; _all: SystemEvent; }; type Keys = keyof TEvents & string; type Listener = (event: TEvent) => void; declare function createEmitter(): { on: { >(key: TKey, listener: Listener): void; >(key: TKey, listener: Listener): void; }; emit: >(key: TKey, event: TEvents[TKey]) => void; }; type Emitter = ReturnType>; //#endregion //#region src/build.d.ts type BuildEvents = { "builder:start": { startedAt: number; }; "builder:end": { startedAt: number; endedAt: number; stats: { collections: number; documents: number; }; }; }; //#endregion //#region src/builder.d.ts type BuilderEvents = BuildEvents & { "builder:created": { createdAt: number; configurationPath: string; outputDirectory: string; }; "watcher:file-changed": { filePath: string; modification: Modification; }; "watcher:config-changed": { filePath: string; modification: Modification; }; "watcher:config-reload-error": { error: Error; configurationPath: string; }; }; type Options$1 = Options & { outputDir?: string; }; declare class ConfigurationReloadError extends Error { constructor(message: string); } declare function createBuilder(configurationPath: string, options?: Options$1, emitter?: Emitter): Promise<{ build: () => Promise; sync: (modification: Modification, filePath: string) => Promise; watch: () => Promise<{ unsubscribe: () => Promise; }>; on: { (key: TKey, listener: (event: Events[TKey]) => void): void; (key: TKey, listener: (event: SystemEvents[TKey]) => void): void; }; }>; declare function createInternalBuilder(initialConfiguration: InternalConfiguration, baseDirectory: string, options: Options$1, emitter: Emitter): Promise<{ build: () => Promise; sync: (modification: Modification, filePath: string) => Promise; watch: () => Promise<{ unsubscribe: () => Promise; }>; on: { (key: TKey, listener: (event: Events[TKey]) => void): void; (key: TKey, listener: (event: SystemEvents[TKey]) => void): void; }; }>; type Builder = Awaited>; //#endregion //#region src/features.d.ts declare const deprecations: { implicitContentProperty: string; collectionsConfigProperty: string; }; type Deprecation = keyof typeof deprecations; declare function suppressDeprecatedWarnings(...suppresses: Array): void; //#endregion export { AnyCollection, AnyConfiguration, AnyContent, AnySingleton, Builder, BuilderEvents, CollectError, Collection, CollectionContext, CollectionRequest, Configuration, ConfigurationError, ConfigurationReloadError, ConfigurationWithCollections, ConfigurationWithContent, ContentType, Context, type Document, type GetTypeByName, Hooks, Meta, type Modification, Schema, Singleton, SingletonContext, SingletonRequest, SkippedSignal, TransformError, type Watcher, type WriterHook, type WriterHookContext, type WriterHookResult, createBuilder, createDefaultImport, createInternalBuilder, createNamedImport, defineCollection, defineConfig, defineParser, defineSingleton, isSingleton, skippedSymbol, suppressDeprecatedWarnings };