/** uBugtrack Crash Report for Node.js and web pages (bundlers use the browser version) */
declare class ubugtrackCrashReport {
    /**
     * Call it once, when the app or the page starts. options.endpoint: another uBugtrack server (tests).
     * Browser only: options.fullUrl sends the query string and hash of the page URL, options.ignore adds messages to ignore.
     */
    static initCrashReporter(crashKey: string, version: string, options?: { endpoint?: string; fullUrl?: boolean; ignore?: RegExp[] }): void;
    /** Express 4 and 5 (Node.js only): call it after your routes, before your own error handlers. */
    static attachExpress(app: { use(...handlers: any[]): unknown }): void;
    /** Reports an error you caught yourself; query: the URL or the task that failed. */
    static report(error: unknown, query?: string): Promise<boolean>;
    /** Reports anything: a title (grouped by title in uBugtrack) and the details. */
    static sendCrashDump(logtitle: string, logfull: string): Promise<boolean>;
}
export = ubugtrackCrashReport;
