import { WorkflowData } from '../models/workflow'; import { APIService } from './api'; export declare class WorkflowService { private api; private v1Url; constructor(api: APIService, url: string); /** * This function returns all workflows * @returns desired workflow */ getWorkflows(): Promise; /** * This function retrieves a workflow. If `locale` is not found, it will try to find 'en' version of it. * By default, will return most recent workflow of a specific `id`. `createdAt` can be used to select older version. * @param id The uuid of the workflow * @param locale (optional) The desired locale of the workflow (default: 'en') * @param createdAt (optional) The creation date of the workflow (also used for versionning) * @returns desired workflow */ getWorkflow(id: string, locale?: string, createdAt?: string): Promise; }