import { DatabaseSync } from "node:sqlite"; export declare const STATUSES: readonly ["todo", "doing", "review", "blocked", "done"]; export declare const PRIORITIES: readonly ["low", "normal", "high", "urgent"]; export type Input = Record; export type Activity = { at: string; kind: string; actor: string; detail: string; }; export type Card = { id: string; board: string; title: string; notes: string; status: string; priority: string; labels: string[]; assignee: string | null; parent: string | null; children: string[]; linked: string | null; claimed_by: string | null; claim_expires_at: string | null; claim_state: "held" | "expired" | null; claim_remaining_seconds: number | null; created_at: string; updated_at: string; activity: Activity[]; }; export type Board = { slug: string; title: string; created_at: string; }; export type Snapshot = { schema: "taskmatic/snapshot/v1"; generated_at: string; boards: Board[]; cards: Card[]; }; export declare const iso: (time?: number) => string; export declare function rootPath(explicit?: string): string; export declare function text(input: Input, key: string, fallback?: string, max?: number): string; export declare function boardSlug(value: string): string; export declare function ttl(value?: unknown): number; export declare class Store { readonly root: string; readonly db: DatabaseSync; private constructor(); static open(explicit?: string, readOnly?: boolean): Promise; close(): void; transaction(action: () => T): T; private row; private event; private ensureBoard; board(slug: string, name?: string): Board; read(id: string): Card; private payload; snapshot(): Snapshot; mutate(action: string, args: Input, defaultActor?: string): Card; } export declare function filterCards(snapshot: Snapshot, filters: Input): Card[];