import { ILogger, ILoggerLog, ILoggerLogCallableOptions } from "../../types"; import { GenericRecord } from "@webiny/api/types"; export interface IDynamoDbLoggerParamsOnFlushCallable { (items: ILoggerLog[]): Promise; } export interface IDynamoDbLoggerOptions { waitForFlushMs?: number; } export interface IDynamoDbLoggerParams { readonly getTenant: () => string; readonly getLocale: () => string; readonly onFlush: IDynamoDbLoggerParamsOnFlushCallable; readonly options?: IDynamoDbLoggerOptions; } export declare class DynamoDbLogger implements ILogger { private readonly items; private readonly getTenant; private readonly getLocale; private readonly onFlush; private readonly options?; private awaiter; private timeout; constructor(params: IDynamoDbLoggerParams); debug(source: string, data: T, options?: ILoggerLogCallableOptions): void; info(source: string, data: T, options?: ILoggerLogCallableOptions): void; warn(source: string, data: T, options?: ILoggerLogCallableOptions): void; notice(source: string, data: T, options?: ILoggerLogCallableOptions): void; error(source: string, data: T, options?: ILoggerLogCallableOptions): void; flush(): Promise; private startFlush; private add; } export declare const createDynamoDbLogger: (params: IDynamoDbLoggerParams) => ILogger;