import { UIMessage } from "ai"; type ExecuteFN = (dataStream: any) => Promise | void; type ExecutionErrorType = new (...args: any[]) => any; export declare function withInterruptions(fn: ExecuteFN, config: { messages: UIMessage[]; errorType: ExecutionErrorType; }): (dataStream: any) => Promise; export {}; //# sourceMappingURL=with-interruptions.d.ts.map