import { z } from 'zod'; import type { OutputModeProfile } from '../output-modes/types.js'; /** Closed expression controls exclude identity, personality and generated signature phrases. */ export declare const writerPreferenceValues: { readonly dialect: readonly ["unspecified", "en-US", "en-GB", "en-AU", "en-CA", "fr-FR", "fr-CA"]; readonly register: readonly ["conversational", "professional", "technical", "formal"]; readonly formality: readonly ["casual", "neutral", "formal"]; readonly warmth: readonly ["reserved", "neutral", "warm"]; readonly directness: readonly ["gentle", "neutral", "direct"]; readonly sentenceLength: readonly ["short", "varied", "long"]; readonly paragraphLength: readonly ["short", "varied", "long"]; readonly contractions: readonly ["prefer", "avoid", "contextual"]; readonly punctuation: readonly ["minimal", "varied", "contextual"]; readonly lexicalChoice: readonly ["familiar", "technical", "contextual"]; readonly rhetoric: readonly ["plain", "illustrative", "contextual"]; readonly structure: readonly ["prose", "lists", "contextual"]; }; export type WriterPreferenceKey = keyof typeof writerPreferenceValues; declare const preference: z.ZodObject<{ id: z.ZodString; key: z.ZodEnum<{ register: "register"; dialect: "dialect"; formality: "formality"; sentenceLength: "sentenceLength"; structure: "structure"; warmth: "warmth"; directness: "directness"; paragraphLength: "paragraphLength"; contractions: "contractions"; punctuation: "punctuation"; lexicalChoice: "lexicalChoice"; rhetoric: "rhetoric"; }>; value: z.ZodString; origin: z.ZodEnum<{ explicit: "explicit"; inferred: "inferred"; }>; confidence: z.ZodEnum<{ low: "low"; high: "high"; moderate: "moderate"; }>; evidence: z.ZodPrefault>>; task: z.ZodOptional; status: z.ZodDefault>; }, z.core.$strict>; declare const override: z.ZodObject<{ key: z.ZodEnum<{ register: "register"; dialect: "dialect"; formality: "formality"; sentenceLength: "sentenceLength"; structure: "structure"; warmth: "warmth"; directness: "directness"; paragraphLength: "paragraphLength"; contractions: "contractions"; punctuation: "punctuation"; lexicalChoice: "lexicalChoice"; rhetoric: "rhetoric"; }>; action: z.ZodEnum<{ set: "set"; reject: "reject"; reset: "reset"; }>; value: z.ZodOptional; task: z.ZodOptional; }, z.core.$strict>; declare const sample: z.ZodObject<{ id: z.ZodString; text: z.ZodOptional; sha256: z.ZodString; approved: z.ZodBoolean; status: z.ZodEnum<{ active: "active"; revoked: "revoked"; }>; provenance: z.ZodObject<{ source: z.ZodString; license: z.ZodString; }, z.core.$strict>; rights: z.ZodObject<{ useForVoice: z.ZodBoolean; shareText: z.ZodBoolean; }, z.core.$strict>; sensitivity: z.ZodEnum<{ secret: "secret"; public: "public"; private: "private"; }>; }, z.core.$strict>; export declare const legacyProfileAttachmentSchema: z.ZodObject<{ format: z.ZodEnum<{ json: "json"; yaml: "yaml"; }>; kind: z.ZodEnum<{ "addon-template": "addon-template"; "python-generated": "python-generated"; "python-analyzed": "python-analyzed"; "python-blended": "python-blended"; "ts-analyzer": "ts-analyzer"; "ts-calibration": "ts-calibration"; }>; raw: z.ZodString; sha256: z.ZodString; payload: z.ZodOptional; }, z.core.$strict>; export declare const writerProfileSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; revision: z.ZodDefault; metadataSharingApproved: z.ZodDefault; id: z.ZodString; version: z.ZodString; name: z.ZodString; provenance: z.ZodObject<{ source: z.ZodString; license: z.ZodString; }, z.core.$strict>; samples: z.ZodArray; sha256: z.ZodString; approved: z.ZodBoolean; status: z.ZodEnum<{ active: "active"; revoked: "revoked"; }>; provenance: z.ZodObject<{ source: z.ZodString; license: z.ZodString; }, z.core.$strict>; rights: z.ZodObject<{ useForVoice: z.ZodBoolean; shareText: z.ZodBoolean; }, z.core.$strict>; sensitivity: z.ZodEnum<{ secret: "secret"; public: "public"; private: "private"; }>; }, z.core.$strict>>; preferences: z.ZodArray; value: z.ZodString; origin: z.ZodEnum<{ explicit: "explicit"; inferred: "inferred"; }>; confidence: z.ZodEnum<{ low: "low"; high: "high"; moderate: "moderate"; }>; evidence: z.ZodPrefault>>; task: z.ZodOptional; status: z.ZodDefault>; }, z.core.$strict>>; overrides: z.ZodPrefault; action: z.ZodEnum<{ set: "set"; reject: "reject"; reset: "reset"; }>; value: z.ZodOptional; task: z.ZodOptional; }, z.core.$strict>>>; counterexamples: z.ZodPrefault>>; legacy: z.ZodOptional; kind: z.ZodEnum<{ "addon-template": "addon-template"; "python-generated": "python-generated"; "python-analyzed": "python-analyzed"; "python-blended": "python-blended"; "ts-analyzer": "ts-analyzer"; "ts-calibration": "ts-calibration"; }>; raw: z.ZodString; sha256: z.ZodString; payload: z.ZodOptional; }, z.core.$strict>>; cacheEpoch: z.ZodDefault; }, z.core.$strict>; export type WriterProfile = z.infer; export type WriterSample = z.infer; export type WriterPreference = z.infer; export type WriterOverride = z.infer; export type LegacyProfileAttachment = z.infer; /** Errors never echo personal text, schema values or raw legacy payloads. */ export declare function parseWriterProfile(input: unknown): WriterProfile; export declare function compileWriterProfile(input: WriterProfile, options?: { task?: string; }): { profile: OutputModeProfile; fallback: boolean; diagnostics: string[]; }; /** Pure operation; stores use cacheEpoch to invalidate dependent retrieval caches. */ export declare function revokeWriterSample(input: WriterProfile, sampleId: string): WriterProfile; /** Private export is lossless. Shared output requires public approval and passes known-secret redaction. */ export declare function exportWriterProfile(input: WriterProfile, mode?: 'private' | 'shared'): WriterProfile; /** Metadata-only inspection suitable for CLI logs; never includes sample text or preference evidence text. */ export declare function inspectWriterProfile(input: WriterProfile): { schemaVersion: 1; id: string; version: string; revision: number; cacheEpoch: number; sampleCount: number; approvedSampleCount: number; preferenceCount: number; legacyFormat: "json" | "yaml" | null; fallback: boolean; }; export {}; //# sourceMappingURL=writer-profile.d.ts.map