import { Context } from "../imports/Context.js"; import { Function } from "../imports/Function.js"; import { FlowRunner } from "./FlowRunner.js"; import { ScriptableDataStream } from "./ScriptableDataStream.js"; import { Scriptable } from "../imports/Scriptable.js"; import { GlideRecord } from "../types/GlideRecord.js"; export declare class FlowAPI { constructor(cx?: Context, args?: any[], ctorObj?: Function, inNewExpr?: boolean); static cancel(contextId?: string, reason?: string): void; static compactSysJsonChunk(): boolean; static compile(flowSysId?: string): string; 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; } //# sourceMappingURL=FlowAPI.d.ts.map