import type { ServerOptions } from '@janux/server'; type Loader = (file: string) => Promise>; export declare function scheduleFiles(schedulesDir: string | undefined): string[]; /** `/billing/invoice-sweep.ts` → `billing/invoice-sweep`. */ export declare function scheduleName(schedulesDir: string, filePath: string): string; export declare function scheduleConfigFile(schedulesDir: string | undefined): string | undefined; /** * Discovers `src/schedules/`, loads it, and mounts a scheduler over it. The * trigger is the deployment's own declaration — 'process' where something * persistent can hold the tick loop, 'http' where the platform's cron has to * POST `/_janux/schedules/tick` instead. */ export declare function scheduleServerOptions(app: { schedulesDir?: string; }, load: Loader, trigger?: 'process' | 'http'): Promise; export {};