import type { Logger } from "@bluecadet/launchpad-utils/logger"; import { z } from "zod"; import type { DataStore } from "./utils/data-store.js"; /** * Context object passed to the `fetch` method of a source. */ export type FetchContext = { /** * Logger instance */ logger: Logger; /** * Data store instance */ dataStore: DataStore; /** * Signals the launchpad process is aborting. Triggered on exception or manual quit. */ abortSignal: AbortSignal; }; declare const sourceFetchResultDocumentSchema: z.ZodObject<{ id: z.ZodString; data: z.ZodCustom | AsyncIterable, Promise | AsyncIterable>; }, z.core.$strip>; export declare const contentSourceSchema: z.ZodObject<{ id: z.ZodString; fetch: z.ZodFunction], 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>; export type ContentSource = z.infer; export type ContentSourceDocument = z.infer; /** * This function doesn't do anything, just returns the source parameter. It's just to make it easier to define/type sources. */ export declare function defineSource(src: T): T; export {}; //# sourceMappingURL=source.d.ts.map