import type { Arguments } from "./function.js";
/** Callback function that starts something with multiple values and returns an optional stop callback. */
export type Start<T extends Arguments = []> = (...values: T) => Stop | void;
/** Callback function that stops something. */
export type Stop = () => void;
/**
 * Wrapper class to handle state on start/stop callback process.
 * - If process has already started, `starter.start()` won't be called twice (including if `start()` didn't return a `stop()` callback).
 */
export declare class Starter<T extends Arguments> implements Disposable {
    private readonly _start;
    private _stop;
    constructor(start: Start<T>);
    start(...values: T): void;
    stop(): void;
    [Symbol.dispose](): void;
}
/** Something that can be made into a `Starter` */
export type PossibleStarter<T extends Arguments> = Start<T> | Starter<T>;
/** Get a `Starter` from a `PossibleStarter` */
export declare function getStarter<T extends Arguments>(start: Start<T> | Starter<T>): Starter<T>;
