import * as n3 from "n3"; import type { Models } from "@triply/utils"; import AsyncIteratorHelperWithToFile from "./utils/AsyncIteratorHelperWithToFile.ts"; import type { Cache } from "./utils/cache.ts"; import type { Account } from "./Account.ts"; import type App from "./App.ts"; import type { AddQueryOptions, RunPipelineOpts } from "./commonAccountFunctions.ts"; import type Dataset from "./Dataset.ts"; import type Org from "./Org.ts"; import type User from "./User.ts"; export type Binding = { [key: string]: string; }; export type VariableValues = { [variable: string]: string | undefined; }; interface AddVersionBase { queryString?: string; variables?: Models.VariableConfig[]; } interface AddVersionLDFrame extends AddVersionBase { output?: string; ldFrame?: never; } interface AddVersionVisualization extends AddVersionBase { output?: never; ldFrame?: object; } type AddVersion = AddVersionVisualization | AddVersionLDFrame; type DuplicateOptions = Partial & { updateRenderConfig?: (renderConfig: Models.QueryRenderConfig["settings"] | undefined) => Models.QueryRenderConfig["settings"]; }; interface QueryUpdateConfig extends Omit { dataset?: string | Dataset; } export default class Query { app: App; private _info; owner: Account; slug: string; private _version; readonly type = "Query"; constructor(app: App, info: Models.Query, owner: Account); private _getQueryType; get api(): { url: string; path: string; }; private _getPath; private _getQueryNameWithOwner; getInfo(refresh?: boolean): Promise; addVersion(args: AddVersion): Promise; getDataset(): Promise; runPipeline(opts: Omit): Promise; runAsSelectQueryJob(): AsyncGenerator; private _setInfo; get version(): number | undefined; useVersion(version: number | "latest"): Promise; update(config: QueryUpdateConfig): Promise; delete(): Promise; getString(variableValues?: VariableValues): Promise; getApiUrl(): Promise; getRunLink(): Promise; results(variables?: VariableValues, opts?: { cache?: Cache; }): { statements: () => AsyncIteratorHelperWithToFile; boolean: () => AsyncIteratorHelperWithToFile<{ boolean: boolean; }, boolean>; bindings: () => AsyncIteratorHelperWithToFile; }; copy(queryName?: string, account?: User | Org, metadataToReplace?: DuplicateOptions): Promise; private static create; } export {}; //# sourceMappingURL=Query.d.ts.map