/** * Branch-keyed cards — the checklist for work that has no increment. * * `.specweave/cards/.jsonl` uses the ledger line format with ids * `C-01`, `C-02`, … A card is declared by a `note` event carrying its `line` * (`specweave card add`), then moves with `claim` / `done` / `block` like a * task. The branch is the one key every tool shares, so no increment number * is spent on spec-less work (0933 D-01). * * @module core/tasks/branch-cards */ import { type LedgerEvent } from './ledger.js'; import { type Card, type CardFoldOptions } from './cards.js'; export declare const CARDS_DIR: string; /** Current branch name, or undefined (detached HEAD, not a Git checkout). */ export declare function currentBranch(cwd: string): string | undefined; /** `inc/0933-cards` → `inc-0933-cards`; anything outside [a-z0-9._-] becomes `-`. */ export declare function branchSlug(branch: string | undefined): string; export declare function branchCardsPath(projectRoot: string, branch: string | undefined): string; export declare function readBranchEvents(file: string): LedgerEvent[]; /** Ids already used in the file (`C-01` …), in first-appearance order. */ export declare function branchCardIds(file: string): string[]; /** Next free id: one more than the highest `C-NN`, zero-padded to two digits. */ export declare function nextBranchCardId(file: string): string; /** Normalize `1`, `c1`, `C-1` → `C-01`. */ export declare function normalizeCardId(input: string): string | undefined; /** Declare a new card; returns its id. */ export declare function addBranchCard(file: string, line: string, by: string, at?: string): string; /** Append one event; no increment bookkeeping (there is no increment). */ export declare function appendBranchEvent(file: string, event: LedgerEvent): void; export declare function branchCards(file: string, opts?: CardFoldOptions): Card[]; //# sourceMappingURL=branch-cards.d.ts.map