import { Command } from "@oclif/core"; import { Mock } from "vitest"; import { Output } from "@sanity/cli-core/types"; import { ProjectRootResult } from "@sanity/cli-core/types"; import { SanityCommandInterface } from "@sanity/cli-core/types"; /** * @internal */ export declare function createMockOutput(): Output; declare interface MockCollection { DefaultProjectRoot: ProjectRootResult; OclifCmdExit: Mock; SanityCmdGetCliConfig: Mock; SanityCmdGetProjectId: Mock; SanityCmdGetProjectRoot: Mock<() => ProjectRootResult>; SanityCmdIsUnattended: Mock; SanityCmdOutput: Output; SanityCmdResolveIsInteractive: Mock; } /** * @internal */ export declare const mocks: MockCollection; /** * A mocked SanityCommand, for use in mocking out the `@sanity/cli-core/SanityCommand` module's command class. * @internal */ export declare class SanityCommand extends Command implements SanityCommandInterface { args: {}; flags: {}; output: Output; exit(code?: number): never; getCliConfig(): Promise; getProjectId(opts?: Record): Promise; getProjectRoot(): Promise; init(): Promise; isUnattended(): any; resolveIsInteractive(): any; run(): Promise; tryGetCliConfig(): Promise; } export {};