import type { Models } from "@triply/utils"; import type { AccountBase } from "./Account.ts"; import type App from "./App.ts"; import { addDataset, addQuery, addStory, ensureDataset, ensureStory, getDataset, getDatasets, getPinnedItems, getQueries, getQuery, getStories, getStory, hasDataset, hasQuery, hasStory, importDataset, importQuery, importStory, pinItems, runPipeline, setAvatar, update } from "./commonAccountFunctions.ts"; import Org from "./Org.ts"; type NewOrganization = Omit; export default class User implements AccountBase { app: App; private _info?; slug: string; readonly type = "User"; constructor(app: App, infoOrAccountName: Models.User | string); addDataset: typeof addDataset; addQuery: typeof addQuery; addStory: typeof addStory; ensureDataset: typeof ensureDataset; ensureStory: typeof ensureStory; getDataset: typeof getDataset; getDatasets: typeof getDatasets; getPinnedItems: typeof getPinnedItems; getQueries: typeof getQueries; getQuery: typeof getQuery; getStories: typeof getStories; getStory: typeof getStory; hasDataset: typeof hasDataset; hasQuery: typeof hasQuery; hasStory: typeof hasStory; importDataset: typeof importDataset; importQuery: typeof importQuery; importStory: typeof importStory; pinItems: typeof pinItems; runPipeline: typeof runPipeline; setAvatar: typeof setAvatar; update: typeof update; get api(): { url: string; path: string; }; private _setInfo; asUser(): Promise; asOrganization(): Promise; getInfo(refresh?: boolean): Promise; createOrganization(accountName: string, info?: NewOrganization): Promise; getOrganizations(): Promise; private _getOrganization; getOrganization(name: string): Promise; ensureOrganization(name: string, newOrg?: NewOrganization): Promise; } export {}; //# sourceMappingURL=User.d.ts.map