/** * guideline command (project scope) + session delivery of "always" guidelines * * Project guidelines live in the project's own index (metadata keys "guideline:"). * A guideline can be marked "always": the session start delivers its full text * (global and project ones), so no one has to remember to read it. * Everything else is listed by key only. */ import { type GuidelineAction } from './global/global-guideline.js'; /** Warn when the delivered "always" texts exceed this many characters. */ export declare const ALWAYS_BUDGET = 6000; export interface ProjectGuideline { key: string; value: string; always: boolean; } export interface ProjectGuidelineParams { path: string; action: GuidelineAction; key?: string; value?: string; always?: boolean; } export interface ProjectGuidelineResult { success: boolean; action: GuidelineAction; guideline?: ProjectGuideline; guidelines?: ProjectGuideline[]; deleted?: boolean; error?: string; } export declare function projectGuideline(params: ProjectGuidelineParams): ProjectGuidelineResult; export interface AlwaysGuidelines { global: Array<{ key: string; value: string; }>; /** Guidelines of this project (no `from`) and of parent projects (`from` = folder name, outermost first). */ project: Array<{ key: string; value: string; from?: string; }>; /** Project guidelines that are not "always" (listed by key only). */ otherProjectKeys: string[]; chars: number; } /** Collect the guidelines the session start delivers in full. Never throws. */ export declare function loadAlwaysGuidelines(projectPath?: string): AlwaysGuidelines; /** * The binding block as delivered at session start: full text of all "always" guidelines * (global, parent projects, project) plus the budget warning. Empty string when there are none. */ export declare function formatAlwaysGuidelines(always: AlwaysGuidelines, heading?: string): string; //# sourceMappingURL=guidelines.d.ts.map