export type GetCallStackOptions = { offset?: number; }; export declare const getCallStack: ({ offset }?: GetCallStackOptions) => string[]; export type LinePosition = { line: number; char: number; }; export type SourcePosition = LinePosition & { file: string; method: string; }; export type CallerOfOptions = { formatPath?: FormatFilePathOptions; upStackBy?: number; skip?: (position: SourcePosition) => boolean; methodName?: string; }; export type FormatFilePathOptions = { relative?: string | boolean; separator?: string; }; export declare const positionToString: (position: SourcePosition) => string; export declare const formatFilePath: (original: string, { relative, separator }: FormatFilePathOptions) => string; export declare const caller: (options?: CallerOfOptions) => SourcePosition; export declare const callsAgo: (num: number, options?: Omit) => SourcePosition;