-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
28 lines (26 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export const aidRegExp: string
export function genAid(t: number): string
export function parseAid(id: string): { date: Date; }
export function isSafeAidT(t: number): boolean
export function correctFilename(filename: string, ext?: string | undefined | null): string
export const L_CHARS: string
export function secureRndstr(length?: number | undefined | null, chars?: string | undefined | null): string
export interface Acct {
username: string
host?: string | null
}
export function parse(acct: string): { username: string; host: string | null; }
export function toString(acct: Acct): string
export function detectSensitivity(path: string, mime: string, sensitiveThreshold: number, sensitiveThresholdForPorn: number): Promise<Nsfw | null>
export const aidxRegExp: string
export function genAidx(t: number): string
export function parseAidx(id: string): { date: Date; }
export function isSafeAidxT(t: number): boolean
export class Nsfw {
sensitive: boolean
porn: boolean
constructor(sensitive: boolean, porn: boolean)
}