/** * Effect `Sink` utilities for Frida. * * @since 1.0.0 */ import type * as Cause from "effect/Cause"; import type * as Function from "effect/Function"; import type * as Sink from "effect/Sink"; /** * @since 1.0.0 * @category Types */ export interface FromWritableOptions { /** Whether to close the `OutputStream` when the sink is done, defaults to * `true`. */ readonly endOnDone?: boolean | undefined; } /** * Sends each string to the host with Frida's `send`. * * @since 1.0.0 * @category Constructors */ export declare const sendSink: Sink.Sink; /** * Writes to a Frida `OutputStream`. Errors are mapped with `onError`, * defaulting to `Cause.UnknownError`. * * @since 1.0.0 * @category Constructors * @see https://frida.re/docs/javascript-api/#outputstream */ export declare const fromOutputStream: (options: FromWritableOptions & { readonly evaluate: Function.LazyArg; readonly onError?: ((error: unknown) => E) | undefined; }) => Sink.Sink; /** * @since 1.0.0 * @category Constructors * @see https://frida.re/docs/javascript-api/#unixoutputstream */ export declare const makeUnixOutputStream: (options: FromWritableOptions & UnixStreamOptions & { readonly fileDescriptor: number; readonly onError?: ((error: unknown) => E) | undefined; }) => Sink.Sink; /** * @since 1.0.0 * @category Constructors * @see https://frida.re/docs/javascript-api/#win32outputstream */ export declare const makeWin32OutputStream: (options: FromWritableOptions & WindowsStreamOptions & { readonly handle: NativePointerValue; readonly onError?: ((error: unknown) => E) | undefined; }) => Sink.Sink; //# sourceMappingURL=Sink.d.ts.map