import { type Models } from "@triply/utils"; import type AsyncIteratorHelper from "./utils/AsyncIteratorHelper.ts"; import type App from "./App.ts"; import { type AddQueryOptions, type ImportDatasetOpts, type ImportQueryOpts, type ImportStoryOpts, type NewStory, type NewStory_deprecated } from "./commonAccountFunctions.ts"; import type Dataset from "./Dataset.ts"; import Org from "./Org.ts"; import type Query from "./Query.ts"; import type Story from "./Story.ts"; import User from "./User.ts"; export interface AccountBase { hasDataset(name: string): Promise; hasQuery(name: string): Promise; hasStory(name: string): Promise; importDataset(sourceDataset: Dataset, opts: ImportDatasetOpts): Promise; importQuery(sourceQuery: Query, opts: ImportQueryOpts): Promise; importStory(sourceStory: Story, opts: ImportStoryOpts): Promise; addDataset(name: string, ds?: Omit): Promise; addQuery(name: string, opts: AddQueryOptions): Promise; addStory(name: string, args?: NewStory | NewStory_deprecated): Promise; asOrganization(): Promise; asUser(): Promise; ensureDataset(name: string, newDs?: Models.NewDataset): Promise; ensureStory(name: string, newStory?: NewStory | NewStory_deprecated): Promise; getDataset(name: string): Promise; getDatasets(): AsyncIteratorHelper; getInfo(): Promise; getPinnedItems(): Promise>; getQueries(): AsyncIteratorHelper; getQuery(name: string): Promise; getStories(): AsyncIteratorHelper; getStory(name: string): Promise; pinItems(items: Array): Promise; setAvatar(pathOrBuffer: string | Buffer): Promise; update(updateObj: Omit): Promise; } export type Account = User | Org; export interface AccountType { accountName?: string; app: App; notExistsErrorMessage: string; } export declare function getUserOrOrg({ accountName, app, notExistsErrorMessage }: AccountType): Promise; //# sourceMappingURL=Account.d.ts.map