export declare const crypto_secretstream_xchacha20poly1305_STATEBYTES: number; export declare const crypto_secretstream_xchacha20poly1305_ABYTES: number; export declare const crypto_secretstream_xchacha20poly1305_HEADERBYTES: number; export declare const crypto_secretstream_xchacha20poly1305_KEYBYTES: number; export declare const crypto_secretstream_xchacha20poly1305_TAGBYTES: number; export declare const crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX: number; export declare const crypto_secretstream_xchacha20poly1305_TAG_MESSAGE: number; export declare const crypto_secretstream_xchacha20poly1305_TAG_PUSH: number; export declare const crypto_secretstream_xchacha20poly1305_TAG_REKEY: number; export declare const crypto_secretstream_xchacha20poly1305_TAG_FINAL: number; /** * Generates a new encryption key. * https://sodium-friends.github.io/docs/docs/streamencryption#crypto_secretstream_xchacha20poly1305_keygen */ export declare function crypto_secretstream_xchacha20poly1305_keygen(key: Uint8Array): void; /** * Initializes state from the writer side with message header and encryption key. The header must be sent or stored with the stream. The key must be exchanged securely with the receiving / reading side. * https://sodium-friends.github.io/docs/docs/streamencryption#crypto_secretstream_xchacha20poly1305_init_push */ export declare function crypto_secretstream_xchacha20poly1305_init_push(state: Uint8Array, header: Uint8Array, key: Uint8Array): void; /** * Encrypts a message with a certain tag and optional additional data. * https://sodium-friends.github.io/docs/docs/streamencryption#crypto_secretstream_xchacha20poly1305_push */ export declare function crypto_secretstream_xchacha20poly1305_push(state: Uint8Array, cipherText: Uint8Array, message: Uint8Array, add_data: Uint8Array | null, tag: Uint8Array): void; /** * Initializes state from the reader side with message header and encryption key. The header must be retrieved from somewhere. The key must be exchanged securely with the sending / writing side. * https://sodium-friends.github.io/docs/docs/streamencryption#crypto_secretstream_xchacha20poly1305_init_pull */ export declare function crypto_secretstream_xchacha20poly1305_init_pull(state: Uint8Array, header: Uint8Array, key: Uint8Array): void; /** * Decrypts a message with optional additional data ad, and writes message tag to tag. Make sure to check this! * https://sodium-friends.github.io/docs/docs/streamencryption#crypto_secretstream_xchacha20poly1305_pull */ export declare function crypto_secretstream_xchacha20poly1305_pull(state: Uint8Array, message: Uint8Array, tag: Uint8Array, cipherText: Uint8Array, add_data: Uint8Array | null): void; //# sourceMappingURL=crypto_secretstream.d.ts.map