/** Unified model-facing scheduler tool for chat-scoped Loop and independent Cron jobs. */ import type Database from "better-sqlite3"; import { type ScheduleAgentCommand, type ScheduleAgentCommandResult } from "../core/schedule-command.js"; type ParseArgs = (args: string[]) => { positional: string[]; flags: Record; }; export type ScheduleCommandExecutor = (chatId: string, command: ScheduleAgentCommand) => Promise; export declare function handleSchedule(db: Database.Database | undefined, args: string[], chatId: string | undefined, chatType: "p2p" | "group", userId: string | undefined, parseArgs: ParseArgs, execute?: ScheduleCommandExecutor): Promise; export {};