export interface ThatOpenConfig { accessToken: string; apiUrl: string; } export declare function readConfig(): ThatOpenConfig | null; export declare function writeConfig(config: ThatOpenConfig): void; export declare function requireConfig(): ThatOpenConfig; export type ProjectType = 'APP' | 'COMPONENT'; export interface ThatOpenLocalConfig { accessToken: string; apiUrl: string; appId?: string; componentId?: string; /** Project type marker set by `thatopen create`. */ itemType?: ProjectType; /** Path to an icon file (PNG, WebP, or ICO) uploaded on publish. */ iconPath?: string; /** Project the first publish lands the app/component in (see `--project-id`). */ projectId?: string; /** Whether this project uses beta engine libraries (@thatopen-platform/*-beta). */ beta?: boolean; } export declare function readLocalConfig(cwd?: string): ThatOpenLocalConfig | null; export declare function writeLocalConfig(config: ThatOpenLocalConfig, cwd?: string): void; export declare function updateLocalConfig(updates: Partial, cwd?: string): void; /** Resolve config: local .thatopen first, then global ~/.thatopen/config.json */ export declare function resolveConfig(cwd?: string): ThatOpenConfig | null; /** Like requireConfig but checks local config first. */ export declare function requireResolvedConfig(cwd?: string): ThatOpenConfig;