UNPKG

@datadog/browser-logs

Version:
9 lines (8 loc) 667 B
import type { TrackingConsentState } from '@datadog/browser-core'; import type { Hooks } from '../domain/hooks'; import type { LogsConfiguration, LogsInitConfiguration } from '../domain/configuration'; import type { CommonContext } from '../rawLogsEvent.types'; import type { Strategy } from './logsPublicApi'; import type { StartLogsResult } from './startLogs'; export type DoStartLogs = (initConfiguration: LogsInitConfiguration, configuration: LogsConfiguration, hooks: Hooks) => StartLogsResult; export declare function createPreStartStrategy(getCommonContext: () => CommonContext, trackingConsentState: TrackingConsentState, doStartLogs: DoStartLogs): Strategy;