import type { CapabilityType } from "../manifest.js"; /** * A capability type the build tool knows how to discover: which directory * under `src/` its files live in, and the `_tag` its default exports must * carry. This SDK registers workflows and syncs. */ export type CapabilityTypeDefinition = { type: CapabilityType; directory: string; tag: string; runtime: "worker" | "build"; }; export declare const CAPABILITY_TYPES: readonly CapabilityTypeDefinition[]; /** * A capability file found during discovery. The key is the file's basename; * combined with the type it forms the capability's identity (`workflow/onPageCreated`). */ export type DiscoveredCapability = { type: CapabilityType; tag: string; runtime: "worker" | "build"; key: string; /** Path to the source file, relative to the project root. */ sourcePath: string; }; /** * Discover capability files by convention: every `.ts` file directly under * `src//` for each registered capability type. Subdirectories are * not searched — they hold plain modules, not capabilities. * * Workflow and sync files are discovered from their matching directories. */ export declare function discoverCapabilities(projectRoot: string): Promise; //# sourceMappingURL=discover.d.ts.map