/** The document's identity and 256-bit key, from the page's data-pipeup-doc attribute. */ export interface DocumentKey { id: string; key: CryptoKey; } export interface Sealed { iv: string; data: string; } /** A fresh value for data-pipeup-doc: ":". */ export declare function newDocumentAttribute(): string; export declare function parseDocumentAttribute(value: string): Promise; /** AES-256-GCM. `context` is bound into the ciphertext so it can't be replayed elsewhere. */ export declare function seal(key: CryptoKey, plaintext: string, context: string): Promise; export declare function unseal(key: CryptoKey, sealed: Sealed, context: string): Promise;