import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { ListWorkflowsOptions, ListWorkflowsResponse, Workflow, WorkflowInfo, CreateWorkflowResponse } from './index.typings.js'; export { Attachment, AttachmentType, AttachmentTypeWithLiterals, Card, CardInfo, CardsList, CreateWorkflowRequest, DeleteWorkflowRequest, DeleteWorkflowResponse, GetWorkflowRequest, GetWorkflowResponse, ListWorkflowsRequest, PaginationResponse, Paging, Phase, PhaseInfo, PhasesList, Query, QueryWorkflowsRequest, QueryWorkflowsResponse, SetupWorkflowRequest, SetupWorkflowResponse, SortOrder, SortOrderWithLiterals, Sorting, UpdateWorkflowRequest, UpdateWorkflowResponse } from './index.typings.js'; declare function listWorkflows$1(httpClient: HttpClient): ListWorkflowsSignature; interface ListWorkflowsSignature { /** * Retrieves a list of the site's workflows info. * * * The `listWorkflows()` function returns a Promise that resolves to a list containing information about the site's workflows. * * * Use the `options` parameter to specify which workflows to retrieve and in which order to retrieve them. Workflows can be sorted based on their `"name"`. * * * If no `limit` parameter is passed, the first 100 workflows are returned. Sort order defaults to by `"name"` ascending. * @param - Options to use when retrieving a list of workflows. */ (options?: ListWorkflowsOptions): Promise>; } declare function getWorkflow$1(httpClient: HttpClient): GetWorkflowSignature; interface GetWorkflowSignature { /** * Retrieves a workflow by ID. * * * The `getWorkflow()` function returns a Promise that resolves to the workflow info with the specified ID. * * * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids). * @param - ID of the workflow to retrieve. * @param - Maximum number of cards to return per phase. * To retrieve additional pages of cards, use * [List Cards](../cards/listCards) * (in the Cards API). * @param - Options to use when retrieving a workflow. * @returns Requested workflow. */ (_id: string, cardsPerPhase: number): Promise>; } declare function updateWorkflow$1(httpClient: HttpClient): UpdateWorkflowSignature; interface UpdateWorkflowSignature { /** * Updates an existing workflow. * * * The `updateWorkflow()` function returns a Promise that resolves when the workflow has been updated with the specified values. * * * Only the properties passed in the `workflow` object will be updated. All other properties will remain the same. * * * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids). * @param - ID of the workflow to update. * @param - Workflow info. * @param - Options to use when updating a workflow. */ (_id: string, workflow: WorkflowInfo): Promise; } declare function createWorkflow$1(httpClient: HttpClient): CreateWorkflowSignature; interface CreateWorkflowSignature { /** * Creates a new workflow. * * * The `createWorkflow()` function returns a Promise that resolves to the created workflow ID. * @param - Workflow details. * @param - Options to use when creating a workflow. */ (workflow: NonNullablePaths): Promise; } declare function deleteWorkflow$1(httpClient: HttpClient): DeleteWorkflowSignature; interface DeleteWorkflowSignature { /** * Deletes a workflow. * * * The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted. * * * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids). * @param - ID of the workflow to delete. */ (_id: string): Promise; } declare const listWorkflows: MaybeContext & typeof listWorkflows$1>; declare const getWorkflow: MaybeContext & typeof getWorkflow$1>; declare const updateWorkflow: MaybeContext & typeof updateWorkflow$1>; declare const createWorkflow: MaybeContext & typeof createWorkflow$1>; declare const deleteWorkflow: MaybeContext & typeof deleteWorkflow$1>; export { CreateWorkflowResponse, ListWorkflowsOptions, ListWorkflowsResponse, Workflow, WorkflowInfo, createWorkflow, deleteWorkflow, getWorkflow, listWorkflows, updateWorkflow };