noa-receipt
Version:
NOA Agent Action Receipt — open, offline-verifiable provenance for AI-agent actions. The governance/receipt organ only; the NOA brain is separate and proprietary.
19 lines (18 loc) • 558 B
TypeScript
export declare const MAX_INPUT_BYTES: number;
export type DecodeResult = {
readonly ok: true;
readonly text: string;
} | {
readonly ok: false;
readonly reason: string;
};
export declare function isUint8Array(value: unknown): boolean;
export declare function decodeDocument(input: unknown, what: string): DecodeResult;
export type ParseResult = {
readonly ok: true;
readonly value: unknown;
} | {
readonly ok: false;
readonly reason: string;
};
export declare function parseDocument(input: unknown, what: string): ParseResult;