import { CommonArgs } from "../index"; import { AuthConfig } from "./config-utils"; export type AuthData = { user: string; token: string; }; export type CancellablePromise = { promise: Promise; cancel: () => void; }; export declare function authByPolling(host: string, initToken: string): CancellablePromise; export declare function startAuth(opts: Partial & { host: string; }): Promise; export declare function readAuth(authFile: string): { host: string; user: string; token: string; basicAuthUser?: string | undefined; basicAuthPassword?: string | undefined; }; export declare function getEnvAuth(): AuthConfig | undefined; export declare function getCurrentAuth(authPath?: string): Promise; export declare function getOrStartAuth(opts: CommonArgs & { host: string; enableSkipAuth?: boolean; }): Promise; export declare function findAuthFile(dir: string, opts: { traverseParents?: boolean; }): string | undefined; export declare function writeAuth(authFile: string, config: AuthConfig): Promise;