Files
cinny/src/ext.d.ts
T

36 lines
739 B
TypeScript
Raw Normal View History

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,
info: EncryptedAttachmentInfo
): 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;
}