export type Logger = (log: Log) => Promise; export declare function useLogWrapper(onLog?: Logger): { onLog: ((newLog: L) => void) | null; error: Error | null; };