/** The event name sent for a track call whose event name is missing. */ export declare const MISSING_EVENT_NAME = "Missing Event Name"; export type DropReason = "queue full" | "send backlog full" | "internal error" | "unsent at exit" | "unconfirmed at exit"; export declare class AvoLog { static now: () => number; private static windows; private static exitListenerArmed; private static exiting; /** Events dropped because the unsent buffer or the send backlog is full. */ static dropped(count: number, reason: DropReason): void; /** A batch answered with an HTTP status other than 200. Only the status is logged. */ static rejected(status: number): void; /** A batch that could not be sent (network error, timeout, header guard). */ static failed(error: unknown): void; /** * An internal error. Only its type is printed: the error may come from reading a property * (a throwing getter or proxy), so its message or stack can carry a property value. */ static internal(error: unknown): void; private static readonly errorTypes; /** A track call without a usable event name, sent as MISSING_EVENT_NAME. */ static missingEventName(): void; /** A streamId containing ':' (warned on every call before; now once per window). */ static streamIdColon(): void; /** * A tracked InspectorEvent with keys the SDK does not know (a typo such as `outputRef` or * `eventname`). Only the key names are printed, JSON-quoted, at most * MAX_LOGGED_OPTION_KEYS of them, each cut to MAX_LOGGED_OPTION_KEY_LENGTH characters; * never a value. */ static unknownEventKeys(keys: string[], known: string[]): void; /** * trackSchemaFromEvent called with something other than an InspectorEvent object, such * as a 1.x call with the event name first. Nothing about the argument is printed. */ static notAnInspectorEvent(): void; /** * Prints every pending count and resets its key. With `onlyExpired` (flush()), only keys * whose window has expired; destroy() and the exit drain print them all. */ static flushPending: (onlyExpired?: boolean) => void; private static names; private static noteNames; private static takeNames; private static occur; private static seconds; private static suffix; private static updateExitListener; private static onBeforeExit; private static onExit; private static write; }