export interface PresetSummary { id: string; name: string | null; version: number; summary: string; } /** Rule flags shared by `cards create` and `cards preset save` (see bin/agent-cards.ts). */ export interface RuleFlagOptions { total?: string; perDay?: string; perWeek?: string; perMonth?: string; categories?: string; onlyMerchants?: string; onlyIn?: string; currencies?: string; onlyDays?: string; onlyHours?: string; timezone?: string; onlyFrom?: string; /** What the preset does when a purchase breaks a rule: strict (default) or watch. */ mode?: string; } export declare function ruleFlagsToWireBody(opts: RuleFlagOptions): Record; export declare function hasAnyRuleFlagOption(opts: RuleFlagOptions): boolean; /** `cards preset list` — built-in templates + this user's saved named presets. */ export declare function listPresets(opts?: { json?: boolean; }): Promise; /** `cards preset save ` — create or version-bump a named preset from rule flags. */ export declare function savePreset(name: string, flags: RuleFlagOptions, opts?: { json?: boolean; }): Promise; /** `cards preset delete ` — retire a saved preset name (cards already pinned keep their rules). */ export declare function deletePreset(name: string, opts?: { json?: boolean; }): Promise; /** Show, update, or clear a card's preset. */ export declare function cardPreset(cardId: string, opts?: { set?: string; clear?: boolean; json?: boolean; }): Promise; /** * `cards preset allow-merchant ` * Remember a merchant so category/merchant rules allow the next matching charge. */ export declare function allowMerchant(cardId: string, pattern: string, opts?: { json?: boolean; }): Promise; //# sourceMappingURL=preset.d.ts.map