import type { BlockReadProps, BlockEditProps } from "../types.js"; import { type ChecklistData } from "./checklist.config.js"; /** * Read renderer. Note `onToggle` is supplied by the block dispatcher for the * historical click-to-toggle behavior; in pure read contexts it is omitted and * the markers render statically. */ export declare function ChecklistBlock({ data, blockId, title, onToggle, }: BlockReadProps & { onToggle?: (itemId: string) => void; }): import("react").JSX.Element; /** Custom editor: toggle, relabel, add, and remove items. */ export declare function ChecklistEditor({ data, onChange, editable, }: BlockEditProps): import("react").JSX.Element; /** * The standard checklist block spec (with React `Read`/`Edit`). Apps register * this in their browser registry. The schema + MDX config come from * `./checklist.config.ts`, the exact same object server / agent code registers, * so rendering and source round-trip never drift. * * `Read` is typed against `BlockReadProps`; the optional * `onToggle` the dispatcher injects for the legacy click-to-toggle behavior is * an extra prop the registry's `BlockView` passes through harmlessly when * present (it lives outside `BlockReadProps`, so it's wired by the app's block * dispatch rather than the generic `BlockView`). */ export declare const checklistBlock: import("../types.js").BlockSpec; //# sourceMappingURL=checklist.d.ts.map