/** * The mandate data model (TypeScript port). Mirrors the Python module's shape * exactly so mandates are interchangeable across the two SDKs. */ export declare const VERSION = "mandatekit/v0"; export declare const SPEC = "AP2-draft-2026Q2"; export interface Amount { value: number; currency: string; } export interface Constraints { intent?: string; categories?: string[]; merchants?: { allow?: string[]; deny?: string[]; }; max_amount?: Amount; } export interface Mandate { version: string; spec: string; mandate_id: string; subject: { agent_id: string; }; issued_at: string; expires_at: string; constraints: Constraints; } export declare function iso(d: Date): string; export declare function parseIso(s: string): Date; export interface BuildOptions { agentId: string; intent?: string; categories?: string[]; merchants?: { allow?: string[]; deny?: string[]; }; maxAmount?: Amount; issuedAt?: Date; expiresAt?: Date; ttlDays?: number; mandateId?: string; } export declare function buildMandate(opts: BuildOptions): Mandate; export declare function validate(m: Mandate): string[]; //# sourceMappingURL=mandate.d.ts.map