import { Connection } from '@salesforce/core';
import { type ApexLog, type TraceFlag } from '@salesforce/types/tooling';
export type ApexTraceFlag = TraceFlag & {
    ExpirationDate: string;
    StartDate: string;
    Id: string;
};
/**
 * Get the apex debug log with a start time that falls in between the provided start and end times.
 *
 * @param connection The connection to use to make requests.
 * @param start The start time of the apex debug log.
 * @param end The end time of the apex debug log.
 * @returns The apex debug log.
 */
export declare const getDebugLog: (connection: Connection, start: number, end: number) => Promise<ApexLog | undefined>;
export declare const writeDebugLog: (connection: Connection, log: ApexLog, outputDir: string) => Promise<void>;
/**
 * Get the debug level id for `SFDC_DevConsole`.
 *
 * @param connection The connection to use to make requests.
 * @returns The debug level id.
 */
export declare const getDebugLevelId: (connection: Connection) => Promise<string>;
/**
 * Create a trace flag for the given user id.
 *
 * @param connection The connection to use to make requests.
 * @param userId The user id to create the trace flag for.
 */
export declare const createTraceFlag: (connection: Connection, userId: string) => Promise<void>;
/**
 * Find a trace flag for the given user id.
 *
 * @param connection The connection to use to make requests.
 * @param userId The user id to find the trace flag for.
 * @returns The trace flag.
 */
export declare const findTraceFlag: (connection: Connection, userId: string) => Promise<ApexTraceFlag | undefined>;
