///
import type { CustomRuntime } from "@effect-ts/core/Effect";
import * as T from "@effect-ts/core/Effect";
import * as S from "@effect-ts/core/Sync";
import * as Fiber from "@effect-ts/system/Fiber";
export declare function defaultTeardown(status: number, id: Fiber.FiberID, onExit: (status: number) => void): void;
export declare const defaultHook: (cont: NodeJS.SignalsListener) => (signal: NodeJS.Signals) => void;
export declare const nodeTracer: (trace: Fiber.Trace) => string;
export declare function prettyTraceNode(trace: Fiber.Trace, adapt: (path: string, mod?: string) => string): string;
export declare function prettyLocationNode(traceElement: Fiber.SourceLocation, adapt: (path: string, mod?: string) => string): string;
export declare function prettyTraceNodeSafe(trace: Fiber.Trace, adapt: (path: string, mod?: string) => string): S.UIO;
export declare class NodeRuntime {
readonly custom: CustomRuntime;
constructor(custom: CustomRuntime);
/**
* Runs effect until completion listening for system level termination signals that
* triggers cancellation of the process, in case errors are found process will
* exit with a status of 1 and cause will be pretty printed, if interruption
* is found without errors the cause is pretty printed and process exits with
* status 0. In the success scenario process exits with status 0 witout any log.
*
* Note: this should be used only in node.js as it depends on global process
*/
runMain(effect: T.Effect, customHook?: (cont: NodeJS.SignalsListener) => NodeJS.SignalsListener, customTeardown?: typeof defaultTeardown): void;
}
export declare const nodeRuntime: NodeRuntime>>;
export declare const run: (self: T.Effect, cb?: Fiber.Callback | undefined) => void, runCancel: (self: T.Effect, cb?: Fiber.Callback | undefined) => T.AsyncCancel, runFiber: (self: T.Effect) => Fiber.FiberContext, runPromise: (self: T.Effect) => Promise, runPromiseExit: (self: T.Effect) => Promise>, runMain: (effect: T.Effect, customHook?: (cont: NodeJS.SignalsListener) => NodeJS.SignalsListener, customTeardown?: typeof defaultTeardown) => void;
//# sourceMappingURL=index.d.ts.map