2024-01-21 23:50:56 +11:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
|
2023-06-12 21:15:23 +10:00
|
|
|
declare module 'browser-encrypt-attachment' {
|
|
|
|
|
export interface EncryptedAttachmentInfo {
|
|
|
|
|
v: string;
|
|
|
|
|
key: {
|
|
|
|
|
alg: string;
|
|
|
|
|
key_ops: string[];
|
|
|
|
|
kty: string;
|
|
|
|
|
k: string;
|
|
|
|
|
ext: boolean;
|
|
|
|
|
};
|
|
|
|
|
iv: string;
|
|
|
|
|
hashes: {
|
|
|
|
|
[alg: string]: string;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface EncryptedAttachment {
|
|
|
|
|
data: ArrayBuffer;
|
|
|
|
|
info: EncryptedAttachmentInfo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function encryptAttachment(dataBuffer: ArrayBuffer): Promise<EncryptedAttachment>;
|
2023-10-06 13:44:06 +11:00
|
|
|
|
|
|
|
|
export function decryptAttachment(
|
|
|
|
|
dataBuffer: ArrayBuffer,
|
2026-05-21 23:30:50 -04:00
|
|
|
info: EncryptedAttachmentInfo,
|
2023-10-06 13:44:06 +11:00
|
|
|
): Promise<ArrayBuffer>;
|
2023-06-12 21:15:23 +10:00
|
|
|
}
|
2024-01-21 23:50:56 +11:00
|
|
|
|
|
|
|
|
declare module '*.svg' {
|
|
|
|
|
const content: string;
|
|
|
|
|
export default content;
|
|
|
|
|
}
|