import type { RuntimeAdapter } from "../platform/index.js"; import type { VeryfrontConfig } from "../config/index.js"; import { type SourceTriggerDiscoveryResult } from "../trigger/discovery.js"; import { type WebhookDefinition } from "./types.js"; /** Inputs for deterministic source webhook discovery. */ export interface WebhookDiscoveryOptions { /** Project root containing configured webhook source directories. */ projectDir: string; /** Runtime adapter used to enumerate and import project source. */ adapter: RuntimeAdapter; /** Optional project configuration used during source loading. */ config?: VeryfrontConfig; /** Explicit webhook directory override relative to `projectDir`. */ webhooksDir?: string; /** Explicit host-owned capability for a trusted local or dedicated runtime. */ allowHostProjectCodeExecution?: boolean; } /** Valid webhooks and bounded per-file discovery diagnostics. */ export type WebhookDiscoveryResult = SourceTriggerDiscoveryResult; /** Discover and validate source-defined webhooks across configured directories. */ export declare function discoverWebhooks(options: WebhookDiscoveryOptions): Promise; //# sourceMappingURL=discovery.d.ts.map