import type { LoginResult, LoginResultOk } from "../utilities/session.js";
export type DeployAuthorization = LoginResultOk | {
    ok: true;
    profile: string;
    dashboardUrl: string;
    auth: {
        apiUrl: string;
        accessToken: string;
        tokenType: "apiKey";
    };
};
type LoginForDeploy = (options: {
    embedded: true;
    defaultApiUrl: string;
    profile: string;
    silent: boolean;
}) => Promise<LoginResult>;
export declare function authenticateForDeploy({ accessToken, apiUrl, profile, silent, login, }: {
    accessToken?: string;
    apiUrl?: string;
    profile: string;
    silent: boolean;
    login: LoginForDeploy;
}): Promise<LoginResult | DeployAuthorization>;
export declare function userIdForDeploy(authorization: DeployAuthorization): string | undefined;
export {};
