import type { Options } from '../api/app';
import { spawnSync } from 'node:child_process';
import { getPMAndCommand } from '../utils';
interface SuperOptions extends Options {
    local: boolean;
}
export type RunDeviceCancelHandler = () => Promise<never>;
type InitAutoTestChangeKind = 'html-banner' | 'vue-banner' | 'css-background';
interface GitRepoStatus {
    inRepo: boolean;
    clean: boolean;
    repoRoot?: string;
    entries: string[];
    error?: string;
}
interface InitAutoTestChange {
    filePath: string;
    displayPath: string;
    kind: InitAutoTestChangeKind;
}
export declare function getGitRepoStatus(startDir?: string): GitRepoStatus;
export declare function getInitUpdaterPluginConfig(appId: string, directInstall: boolean): {
    autoSplashscreen?: boolean | undefined;
    version: string;
    appId: string;
    autoUpdate: string;
};
export declare function getInitOtaVersionBase(pkgVersion: string): string;
export declare function getInitSuggestedOtaVersion(pkgVersion: string): string;
export declare function applyInitAutoTestChange(filePath: string, content: string): {
    kind: InitAutoTestChangeKind;
    content: string;
} | undefined;
export declare function revertInitAutoTestChangeContent(kind: InitAutoTestChangeKind, content: string): string | undefined;
export declare function isOnlyAllowedInitAutoTestChange(status: GitRepoStatus, allowedChange?: InitAutoTestChange): boolean;
type PackageManagerInfo = ReturnType<typeof getPMAndCommand>;
export type PlatformChoice = 'ios' | 'android';
export type RunDeviceStepOutcome = {
    args: string[];
    command: string;
} | {
    args: undefined;
    command: string;
};
export interface CapacitorRunTarget {
    name: string;
    api: string | undefined;
    id: string;
}
export declare function runPackageRunnerSync(runner: string, args: string[], options: Parameters<typeof spawnSync>[2]): import("node:child_process").SpawnSyncReturns<string | NonSharedBuffer>;
export declare function parseCapacitorRunTargetList(output: string): CapacitorRunTarget[];
export declare function getPhysicalIosRunTargets(targets: CapacitorRunTarget[]): CapacitorRunTarget[];
export declare function getSimulatorIosRunTargets(targets: CapacitorRunTarget[]): CapacitorRunTarget[];
export declare function resolveRunDeviceCommand(cancelHandler: RunDeviceCancelHandler, pm: PackageManagerInfo, platformName: PlatformChoice): Promise<RunDeviceStepOutcome>;
export declare function normalizeRunDevicePlatform(platformName: string): PlatformChoice;
export declare function initApp(apikeyCommand: string, appId: string, options: SuperOptions): Promise<void>;
export {};
