/** * Dispatches a `SourceConfig[]` (typed as `unknown[]` at this boundary because * Zod will validate each entry) into `TaskSource[]` via the runtime adapter * registry. The two-function shape lets tests target `buildSourcesWith` with a * fake registry, while production code calls `buildSources` which awaits the * directory-scanned `adapterRegistry`. */ import { z } from "zod"; import type { AdapterContext, AdapterDefinition } from "./adapterDefinition.ts"; import type { ResolvedConfig } from "./config.ts"; import type { TaskSource } from "./taskSource.ts"; export declare const kindShape: z.ZodObject<{ kind: z.ZodString; }, z.core.$strip>; /** * Production entry point. Awaits the directory-scanned registry, then dispatches. */ export declare function buildSources(rawConfigs: readonly unknown[], context: AdapterContext): Promise; /** * Pure dispatcher: caller supplies the registry directly. No filesystem or * import side effects. */ export declare function buildSourcesWith(registry: Record, rawConfigs: readonly unknown[], context: AdapterContext): TaskSource[]; /** * Build the runtime source list from a ResolvedConfig: returns the enabled * entries from `config.sources`. Any source with `enabled: false` is dropped. * Returns an empty array when no sources are configured — callers are * responsible for detecting that state and guiding the user. */ export declare function sourcesFromConfig(config: ResolvedConfig): readonly unknown[]; /** * True when an enabled source explicitly declares `kind: "linear"`. Callers * use this to skip Linear API calls (and the missing-API-key error they raise) * when Linear is not configured. */ export declare function isLinearEnabled(config: ResolvedConfig): boolean; //# sourceMappingURL=buildSources.d.ts.map