import type { Models } from "@triply/utils"; import type App from "./App.ts"; import type Dataset from "./Dataset.ts"; type ServiceAdminInfo = { queriedAtUncached?: string; queriedAt?: string; autostopsAt?: string; dataset?: Dataset; adminInfo?: { fromOrchestrator?: {}; fromService?: {}; }; canUpdate?: boolean; foundInDocker?: boolean; foundInMongo?: boolean; }; export type ServiceInfo = Omit; type OnProgressUpdateType = "creating" | "swapping" | "deleting" | "finished"; export default class Service { app: App; private _info?; private _graphs?; dataset: Dataset; slug: string; private _type; private _config?; readonly type = "Service"; constructor(conf: { app: App; name: string; dataset: Dataset; type: Models.ServiceType; config?: Models.ServiceConfig; }); getInfo(refresh?: boolean): Promise; get api(): { url: string; path: string; }; isUpToDate(): Promise; rename(newName: string): Promise; getGraphs(refresh?: boolean): Promise; delete(): Promise; create(): Promise; waitUntilRunning(): Promise; update(opts?: { rollingUpdate: false; }): Promise; update(opts?: { rollingUpdate: true; onProgress?: (opts?: { type: OnProgressUpdateType; message: string; }) => void; }): Promise; private rollingUpdate; getDataset(): Dataset; } export {}; //# sourceMappingURL=Service.d.ts.map