export interface ChecklyInstall { dir: string; version: string; } /** Present in every explanation, so a message is never explained twice. */ export declare const TWO_INSTALLS_MARKER = "Constructs only register with the checkly install that runs the command."; /** The checkly package this module belongs to. */ export declare function ownInstall(): ChecklyInstall; /** The checkly package containing `file`, such as the CLI bin being run. */ export declare function findContainingInstall(file: string): ChecklyInstall | undefined; /** * The checkly install a bare `checkly` import in `directory` resolves to. * Like Node and findProjectCli, the search ends at the first * node_modules/checkly, even when that is not a usable checkly package. */ export declare function findResolvedInstall(directory: string): ChecklyInstall | undefined; export declare function isSameInstall(a: ChecklyInstall, b: ChecklyInstall): boolean; /** * What went wrong when a construct from `construct` was created while * `running` ran the command, and what to do about it. `project` is the * install the project's directory resolves. */ export declare function explainTwoInstalls({ construct, running, project }: { construct: ChecklyInstall; running: ChecklyInstall; project?: ChecklyInstall; }): string; /** * For the copy of checkly whose construct failed: the explanation when the * running CLI (the script Node was started with) is a different install, or * `undefined`. */ export declare function explainFromConstructSide(): string | undefined; /** * For the running CLI, when loading `filePath` failed because a construct was * created outside a project: the explanation when the file's constructs come * from a different install, or `undefined`. */ export declare function explainFromRunningSide(filePath: string, projectDir: string): string | undefined;