/** Client-safe, versioned preset authoring contract. No filesystem or runtime imports. */ export interface PresetFields { name: string; description: string; systemPrompt: string; inheritPrompt: boolean; } export interface PresetPromptSection { id: string; label: string; text: string; editable: boolean; /** Excluded by a complete Persona; shown for inspection, never saved as an active section. */ suppressed?: boolean; } /** Codex capabilities stored with a preset. Activity status stays global. */ export interface CodexPresetOptions { promptEnabled: boolean; terminalToolsEnabled: boolean; patchToolEnabled: boolean; planToolEnabled: boolean; hostedWebSearchEnabled: boolean; remoteCompactionEnabled: boolean; } export interface PresetEditorDocument extends PresetFields { id: string; revision: string; editable: boolean; codex: boolean; codexOptions: CodexPresetOptions; composition: string; promptSections: PresetPromptSection[]; } export interface PresetEditorInput extends PresetFields { id: string; revision?: string; composition?: string; enableCodex?: boolean; promptSections?: PresetPromptSection[]; codexOptions?: Partial; } export interface PresetCreateInput extends PresetFields { sourceId: string; enableCodex?: boolean; promptSections?: PresetPromptSection[]; composition?: string; codexOptions?: Partial; } export interface PresetCatalogRow { id: string; name: string; description: string; editable: boolean; isDefault: boolean; codex?: boolean; } export interface PresetCatalog { presets: PresetCatalogRow[]; authorable: boolean; excludedCount: number; } /** A portable instruction card, deliberately not executable YAML or a tool bundle. */ export interface PromptCard extends PresetFields { format: 'codex-harness/prompt-card'; version: 1; } export declare function parsePromptCard(text: string): PromptCard; export declare function exportPromptCard(fields: PresetFields): string; //# sourceMappingURL=preset-contract.d.ts.map