/**
 * Telegram bot offset persistence.
 * Tracks the last processed update_id to prevent stale command replay on restart.
 */
export interface BotOffset {
    lastUpdateId: number;
    savedAt: string;
}
/** Ensure KASTELL_DIR exists. Call once at startup, not per-save. */
export declare function ensureOffsetDir(): void;
/** Load the last saved offset. Returns null if file is missing or corrupt. */
export declare function loadOffset(): BotOffset | null;
/** Persist the last processed update_id with current timestamp. */
export declare function saveOffset(updateId: number): void;
/** Check if the given savedAt timestamp is older than 24 hours. */
export declare function isStale(savedAt: string): boolean;
//# sourceMappingURL=offset.d.ts.map