import { LogApi } from "../shim/logsApi";
export declare class AutoCollectExceptions {
    private _exceptionListenerHandle?;
    private _rejectionListenerHandle?;
    private _client;
    private _tokens;
    private _lastRefillTime;
    private _suppressedCount;
    constructor(client: LogApi);
    shutdown(): void;
    /**
     * Refill the token bucket if at least one full window has elapsed since
     * the last refill. If the bucket was previously exhausted, emit a single
     * summary describing how many exceptions were suppressed.
     */
    private _refillTokens;
    private _handleException;
}
export declare class _StackFrame {
    sizeInBytes: number;
    level: number;
    method: string;
    assembly: string;
    fileName: string;
    line: number;
    private _baseSize;
    constructor(frame: string, level: number);
}
export declare function parseStack(stack: any): _StackFrame[];
