You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

import { ExpoConfig } from '@expo/config';
import { ApiV2, RobotUser, User } from 'xdl';
import { AppleCtx } from '../appleApi';
import AndroidApi from './api/AndroidApi';
import IosApi from './api/IosApi';
export interface IView {
open(ctx: Context): Promise<IView | null>;
}
interface AppleCtxOptions {
appleId?: string;
appleIdPassword?: string;
teamId?: string;
}
interface CtxOptions extends AppleCtxOptions {
allowAnonymous?: boolean;
nonInteractive?: boolean;
}
export declare class Context {
_hasProjectContext: boolean;
_projectDir?: string;
_user?: User | RobotUser;
_manifest?: ExpoConfig;
_apiClient?: ApiV2;
_iosApiClient?: IosApi;
_androidApiClient?: AndroidApi;
_appleCtxOptions?: AppleCtxOptions;
_appleCtx?: AppleCtx;
_nonInteractive?: boolean;
get nonInteractive(): boolean;
get user(): User | RobotUser;
get hasProjectContext(): boolean;
get projectDir(): string;
get projectOwner(): string;
get manifest(): ExpoConfig;
get api(): ApiV2;
get android(): AndroidApi;
get ios(): IosApi;
get appleCtx(): AppleCtx;
set manifest(value: ExpoConfig);
hasAppleCtx(): boolean;
ensureAppleCtx(): Promise<void>;
logOwnerAndProject(): void;
init(projectDir: string, options?: CtxOptions): Promise<void>;
}
export {};