mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
38 lines
834 B
TypeScript
38 lines
834 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare const APP_VERSION: string;
|
|
declare const BUILD_HASH: string;
|
|
declare const IS_RELEASE_TAG: boolean;
|
|
|
|
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: Record<string, string>;
|
|
}
|
|
|
|
export interface EncryptedAttachment {
|
|
data: ArrayBuffer;
|
|
info: EncryptedAttachmentInfo;
|
|
}
|
|
|
|
export function encryptAttachment(dataBuffer: ArrayBuffer): Promise<EncryptedAttachment>;
|
|
|
|
export function decryptAttachment(
|
|
dataBuffer: ArrayBuffer,
|
|
info: EncryptedAttachmentInfo
|
|
): Promise<ArrayBuffer>;
|
|
}
|
|
|
|
declare module '*.svg' {
|
|
const content: string;
|
|
export default content;
|
|
}
|