import { z } from 'zod'; export declare const writingBriefSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; id: z.ZodString; operation: z.ZodEnum<{ "draft-from-notes": "draft-from-notes"; "edit-existing": "edit-existing"; "proofread-only": "proofread-only"; "continue-author-text": "continue-author-text"; }>; reader: z.ZodObject<{ task: z.ZodString; audience: z.ZodString; requirements: z.ZodArray; }, z.core.$strict>; intendedAction: z.ZodString; exclusions: z.ZodArray; inputs: z.ZodArray; text: z.ZodString; sha256: z.ZodString; provenance: z.ZodObject<{ source: z.ZodString; version: z.ZodString; }, z.core.$strict>; authorApproved: z.ZodBoolean; }, z.core.$strict>>; propositions: z.ZodArray; evidence: z.ZodArray>; qualifiers: z.ZodArray; }, z.core.$strict>>; limitations: z.ZodArray; evidence: z.ZodArray>; qualifiers: z.ZodArray; }, z.core.$strict>>; authorClaims: z.ZodArray; text: z.ZodString; evidence: z.ZodArray>; }, z.core.$strict>>; sourceInputId: z.ZodOptional; permissions: z.ZodObject<{ rephrase: z.ZodBoolean; reorder: z.ZodBoolean; addContent: z.ZodBoolean; corrections: z.ZodArray; start: z.ZodNumber; end: z.ZodNumber; id: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; export type WritingBrief = z.infer; export type WritingBriefOperation = WritingBrief['operation']; export interface BriefDiagnostic { code: 'schema' | 'integrity' | 'reference' | 'editorial-gap' | 'permission' | 'unsupported-claim' | 'protected-content'; message: string; /** Identifiers only: diagnostics never echo input/sample text. */ referenceId?: string; } export interface BriefCheck { valid: boolean; diagnostics: BriefDiagnostic[]; } export declare const writingBriefHash: (value: string) => string; /** Structural checks prove reference/permission integrity, not truth or semantic entailment. */ export declare function validateWritingBrief(value: unknown): BriefCheck; /** Parse only a complete, internally consistent brief; no guessed task, intent or sources. */ export declare function parseWritingBrief(value: unknown): WritingBrief; export interface WritingBriefTarget { profileId: string; channel: 'article' | 'social' | 'email' | 'engineering' | 'conversation'; } export interface PreparedWritingBrief { brief: WritingBrief; target: WritingBriefTarget; briefDigest: string; lineage: { inputId: string; sha256: string; role: WritingBrief['inputs'][number]['kind']; }[]; operation: WritingBriefOperation; permissions: WritingBrief['permissions']; factualVerification: 'not-performed'; } /** Parameterization changes presentation targets only, never the brief or confidence. */ export declare function prepareWritingBrief(value: unknown, target: WritingBriefTarget): PreparedWritingBrief; export interface ProposedBriefClaim { kind: 'proposition' | 'experience' | 'opinion' | 'intent' | 'rationale'; text: string; groundedIn: string[]; } /** Exact supported wording only. Paraphrases need review; matching IDs alone cannot approve invented text. */ export declare function validateBriefClaims(value: unknown, proposed: ProposedBriefClaim[]): BriefCheck; export interface BriefEditResult extends BriefCheck { text: string; lineage: { sourceInputId?: string; sourceDigest?: string; finalDigest: string; correctionIds: string[]; briefDigest?: string; }; } /** Apply only explicitly authorized, exact corrections; on any failure return the unchanged source. */ export declare function applyProofreadCorrections(value: unknown, correctionIds: string[]): BriefEditResult; //# sourceMappingURL=writing-brief.d.ts.map