import { Context } from "../imports/Context"; import { Function } from "../imports/Function"; import { FlowRunner } from "./FlowRunner"; import { ScriptableDataStream } from "./ScriptableDataStream"; import { Scriptable } from "../imports/Scriptable"; import { GlideRecord } from "../types/GlideRecord"; export declare class FlowAPI { static cancel(contextId?: string, reason?: string): void; static compactSysJsonChunk(): boolean; static compile(flowSysId?: string): string; constructor( cx?: Context, args?: any[], ctorObj?: Function, inNewExpr?: boolean ); static eSignatureAudit(approverId?: string, approvalRecord?: any): boolean; static executeAction( scopedActionName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): Record; static executeActionQuick( scopedActionName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): Record; static executeDataStreamAction( scopedActionName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): ScriptableDataStream; static executeFlow( scopedFlowName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): void; static executeFlowQuick( scopedFlowName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): void; static executeSubflow( scopedSubflowName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): Record; static executeSubflowQuick( scopedSubflowName?: string, scriptInputs?: Scriptable, timeoutMs?: number ): Record; static getApproverUsername(userSysId?: string): string; static getErrorMessage(contextId?: string): string; static getFlowStages(scopedFlowName?: string): string; static getOutputs(contextId?: string): Record; static getRunner(): FlowRunner; static getRunningFlows( sourceRecord?: GlideRecord, queryChildContexts?: boolean, flowName?: string ): GlideRecord; static getState(contextId?: string): string; static getStatus(contextId?: string): Record; static hasApprovals(scopedFlowName?: string): string; static notifyApprovalAction(o?: any): boolean; static nudgeFlow(flowContextSysID?: string, delaySeconds?: number): boolean; static nudgeFlowsWaitingOn( waitingOnRecordTable?: string, waitingOnRecordSysID?: string, delaySeconds?: number ): void; static processReadyEvents(instance?: string): void; static publish(flowSysId?: string): string; static scheduleCancel( contextId?: string, reason?: string, delaySeconds?: number ): void; static sendMessage( contextSysId?: string, message?: string, payload?: string ): void; static simulateNodeShutdown(nodeName?: string): void; static startAction( scopedActionName?: string, scriptInputs?: Scriptable ): string; static startActionQuick( scopedActionName?: string, scriptInputs?: Scriptable ): void; static startFlow(scopedFlowName?: string, scriptInputs?: Scriptable): string; static startFlowQuick( scopedFlowName?: string, scriptInputs?: Scriptable ): void; static startSubflow( scopedSubflowName?: string, scriptInputs?: Scriptable ): string; static startSubflowQuick( scopedSubflowName?: string, scriptInputs?: Scriptable ): void; static startSubflowSkipInputValidation( scopedSubflowName?: string, scriptInputs?: Scriptable ): string; }