import { ResultAsync } from "neverthrow"; import { z } from "zod"; import type { ContentTransform } from "./content-transform.js"; import { ContentError } from "./content-transform.js"; import { type ContentSource } from "./source.js"; export type ConfigContentSource = ContentSource | Promise; /** * Configuration for content sources and plugins. */ export declare const contentConfigSchema: z.ZodObject<{ sources: z.ZodPrefault], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }, z.core.$strip>, z.ZodPromise], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }, z.core.$strip>>]>>, z.ZodTransform<{ id: string; fetch: z.core.$InferOuterFunctionType], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }[], ({ id: string; fetch: z.core.$InferOuterFunctionType], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; } | Promise<{ id: string; fetch: z.core.$InferOuterFunctionType], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }>)[]>>>; transforms: z.ZodDefault>>; downloadPath: z.ZodDefault; tempPath: z.ZodDefault; backupPath: z.ZodDefault; keep: z.ZodDefault>; backupAndRestore: z.ZodDefault; maxTimeout: z.ZodDefault; encodeChars: z.ZodDefault; }, z.core.$strip>; export type ContentConfig = z.input; export type ResolvedContentConfig = z.output; /** * Type helper to define content config. */ export declare function defineContentConfig(config: ContentConfig): { sources?: z.core.util.MaybeAsync<{ id: string; fetch: z.core.$InferInnerFunctionType], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }>[] | undefined; transforms?: ContentTransform[] | undefined; downloadPath?: string | undefined; tempPath?: string | undefined; backupPath?: string | undefined; keep?: string[] | undefined; backupAndRestore?: boolean | undefined; maxTimeout?: number | undefined; encodeChars?: string | undefined; }; export declare function parseContentConfig(config: ContentConfig): ResultAsync<{ sources: { id: string; fetch: z.core.$InferOuterFunctionType], null>, z.ZodUnion | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>>, z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>]>>; }[]; transforms: ContentTransform[]; downloadPath: string; tempPath: string; backupPath: string; keep: string[]; backupAndRestore: boolean; maxTimeout: number; encodeChars: string; }, ContentError>; //# sourceMappingURL=content-config.d.ts.map