import { Item, SchemaOverview } from '@directus/shared/types'; import { Knex } from 'knex'; import { AST, NestedCollectionNode } from '../types/ast'; declare type RunASTOptions = { /** * Query override for the current level */ query?: AST['query']; /** * Knex instance */ knex?: Knex; /** * Whether or not the current execution is a nested dataset in another AST */ nested?: boolean; /** * Whether or not to strip out non-requested required fields automatically (eg IDs / FKs) */ stripNonRequested?: boolean; /** Disable transformers */ transformers?: { conceal?: boolean; hash?: boolean; json?: boolean; boolean?: boolean; uuid?: boolean; 'user-created'?: boolean; 'user-updated'?: boolean; 'role-created'?: boolean; 'role-updated'?: boolean; 'date-created'?: boolean; 'date-updated'?: boolean; csv?: boolean; 'json-stringify'?: boolean; }; }; /** * Execute a given AST using Knex. Returns array of items based on requested AST. */ export default function runAST(originalAST: AST | NestedCollectionNode, schema: SchemaOverview, options?: RunASTOptions): Promise; export {};