import { type OrgSignatureReason } from '../orgrt/org-signature.js'; import type { CommandContext, CommandResult } from '../types.js'; export type OrgCheckState = 'signed' | OrgSignatureReason | 'not-found' | 'invalid'; export interface OrgCheckEntry { org: string; state: OrgCheckState; signedAt?: string; /** The hash `org sign --expect-hash` compares (doc/commands/org.md). */ hash?: string; message?: string; } /** The project root `org sign` works on: `--project ` (its real path, * which must hold `.monomind/orgs`) or the current directory. */ export declare function resolveSignRoot(ctx: CommandContext): { root: string; } | { error: string; }; /** `--expect-hash`, per org to sign: absent (no check), `` for one org, * or with `--all` one `=` for each org signed and no other. */ export declare function parseExpectHashes(ctx: CommandContext, names: string[]): { hashes?: Map; } | { error: string; }; /** One org's signature state. Reads only. */ export declare function checkOrg(root: string, org: string): OrgCheckEntry; /** `org sign --check`: 0 when every org checked is signed and unchanged, * 1 otherwise, 2 for an org that is not there, `--all` with no orgs, or a * usage error. */ export declare function checkAction(ctx: CommandContext): CommandResult; //# sourceMappingURL=org-sign-check.d.ts.map