import type { OAuthCredentials } from "@mariozechner/pi-ai";
import type { RuntimeEnv } from "../runtime.js";
import type { WizardPrompter } from "../wizard/prompts.js";
export declare const XAI_OAUTH_CLIENT_ID: string;
export declare function loginXaiOAuth(params: {
    prompter: WizardPrompter;
    runtime: RuntimeEnv;
    isRemote: boolean;
    openUrl: (url: string) => Promise<void>;
}): Promise<OAuthCredentials | null>;
export declare function loginXaiDeviceCode(params: {
    prompter: WizardPrompter;
    runtime: RuntimeEnv;
    isRemote: boolean;
    openUrl: (url: string) => Promise<void>;
}): Promise<OAuthCredentials | null>;
export declare function refreshXaiOAuthCredential(credential: OAuthCredentials): Promise<OAuthCredentials>;
