import type { BasicAppLogger } from "./public.types.js"; export interface CronLikeOptions { shouldExecute: ShouldExecuteFn; immediate?: boolean; logger: BasicAppLogger; } export type ShouldExecuteFn = (lastTime: Date) => boolean; /** * @returns A function to stop the cron-like process. */ export declare function startCronLike(task: () => Promise, { shouldExecute, immediate, logger }: CronLikeOptions): () => Promise; export declare function eachDay({ hours }: { hours: number; }): ShouldExecuteFn; //# sourceMappingURL=cron-like.d.ts.map