import type { CommandContext, CommandResult } from '../types.js'; export declare function readRaw(cwd: string, name: string): unknown; /** An org read for signing: its definition and instructions digests, each * file read once, and the hash that signing them records. */ export interface LoadedOrg { name: string; raw: unknown; digests: Record; hash: string; } /** Read one org to sign, or an error string. */ export declare function loadOrg(root: string, name: string): LoadedOrg | string; type Style = 'bold' | 'warning' | 'dim'; export interface OrgReview { state: 'signed' | 'changed' | 'unsigned' | 'invalid-signature' | 'forbidden-key'; review: { authority: string[]; unconfinedRoles: Array<{ id: string; why: string; }>; nonBundledSkills: string[]; approvalCandidates: string[]; firstLookConfigs: string[]; /** Changed leaves since the last signature; null when there is none. */ diff: string[] | null; }; lines: Array<{ text: string; style?: Style; }>; } /** The whole review: state, every authority-relevant setting, the * unconfined roles, and what changed since the last signature. */ export declare function buildReview(cwd: string, name: string, raw: unknown, digests?: Record): OrgReview; export declare function printReview(cwd: string, name: string, raw: unknown, digests?: Record): void; /** `org sign --format json` without --yes: the review and the hash of * the content reviewed, from one read. Never prompts, never signs. */ export declare function reviewJsonAction(ctx: CommandContext, names: string[]): CommandResult; export {}; //# sourceMappingURL=org-sign-show.d.ts.map