import { backgroundRunCutOffReason, type BackgroundAutomationContext, type BackgroundAutomationDeps } from "./background-automation-runner.js"; import { type JobFrontmatter } from "./frontmatter.js"; export { classifyJobFrontmatter, classifyJobResource, normalizeJobMcpTools, parseJobResource, type JobFrontmatter, type JobResourceClassification, } from "./frontmatter.js"; export declare function parseJobFrontmatter(content: string): { meta: JobFrontmatter; body: string; }; export declare function buildJobContent(meta: JobFrontmatter, body: string): string; export type RecurringJobContext = BackgroundAutomationContext; export interface SchedulerDeps extends BackgroundAutomationDeps { getInitialToolNames?: (job?: RecurringJobContext) => string[] | undefined; /** Job `appId` values this scheduler runs besides `appId`; the lease and run history stay under `appId`. */ additionalJobAppIds?: readonly string[]; } export declare function processRecurringJobs(deps: SchedulerDeps): Promise; export declare const jobRunCutOffReason: typeof backgroundRunCutOffReason; interface JobExecutionResult { status: "success" | "error" | "skipped"; runId?: string; error?: string; } export declare function runJobNow(owner: string, name: string, deps: SchedulerDeps, options?: { historyId?: string; path?: string; }): Promise; export declare function runQueuedAutomation(historyId: string, deps: SchedulerDeps): Promise<{ skipped: boolean; runId?: string; error?: string; }>;