picgo
Version:
A tool for image uploading
16 lines (15 loc) • 567 B
TypeScript
import type { IPicGo } from '../../../types';
import type { IE2ERequestFields, ISyncConfigResponse } from '../../ConfigSyncManager/types';
export interface IUpdateConfigResult {
success: boolean;
version: number;
conflict?: boolean;
}
export declare class ConfigService {
private readonly client;
private readonly ctx;
private appType;
constructor(ctx: IPicGo);
fetchConfig(): Promise<ISyncConfigResponse | null>;
updateConfig(configStr: string, baseVersion: number, e2eFields?: IE2ERequestFields): Promise<IUpdateConfigResult>;
}