import type { BuilderProjectPrompts } from './project-selection.js';
export interface OnboardingBuilderOptions {
    analytics?: boolean;
    apikey?: string;
    platform?: string;
    supaHost?: string;
    /** Custom Supabase anon key for self-hosting (--supa-anon). */
    supaAnon?: string;
    /**
     * Offer the self-update prompt as the first wizard screen. ONLY the genuine
     * `build init` / `onboarding` entrypoint sets this. Other callers that reach
     * onboarding as a sub-step (`bundle upload`'s launch-onboarding,
     * `build credentials manage`) must leave it false: their process.argv is the
     * wrapper command (`bundle upload …`), so a re-exec would repeat THAT command
     * (e.g. re-run the upload) instead of `build init`.
     */
    enableSelfUpdate?: boolean;
    /** Search exact-root package workspaces for a Capacitor app before onboarding. */
    enableProjectDiscovery?: boolean;
}
export declare function shouldDiscoverBuilderProject(options: OnboardingBuilderOptions): boolean;
export declare function builderProjectNotFoundMessage(nxDetected: boolean): string;
export declare function builderProjectTimeoutMessage(): string;
type BuilderProjectResolution = 'ready' | 'cancelled' | 'not-found';
export declare function discoverBuilderProjectFromInvocationRoot(options: OnboardingBuilderOptions, prompts: BuilderProjectPrompts): Promise<BuilderProjectResolution>;
export declare function onboardingBuilderCommand(options?: OnboardingBuilderOptions): Promise<void>;
export {};
