import { Service } from '../service'; import { Client } from '../client'; import type { Models } from '../models'; export declare class Functions extends Service { constructor(client: Client); /** * List Executions * * Get a list of all the current user function execution logs. You can use the * query params to filter your results. * * @param {string} functionId * @param {string[]} queries * @param {string} search * @throws {AppwriteException} * @returns {Promise} */ listExecutions(functionId: string, queries?: string[], search?: string): Promise; /** * Create Execution * * Trigger a function execution. The returned object will return you the * current execution status. You can ping the `Get Execution` endpoint to get * updates on the current execution status. Once this endpoint is called, your * function execution process will start asynchronously. * * @param {string} functionId * @param {string} data * @param {boolean} async * @throws {AppwriteException} * @returns {Promise} */ createExecution(functionId: string, data?: string, async?: boolean): Promise; /** * Get Execution * * Get a function execution log by its unique ID. * * @param {string} functionId * @param {string} executionId * @throws {AppwriteException} * @returns {Promise} */ getExecution(functionId: string, executionId: string): Promise; }