import type { RegisterControlEndpointOptions, SessionControlRegistration } from "../../core/extensions/types.ts";
import { type ActiveControlEndpoint, type TuiControlContext } from "./session-control-lifecycle.ts";
export type { ActiveControlEndpoint, TuiControlContext } from "./session-control-lifecycle.ts";
type Registered = Extract<SessionControlRegistration, {
    readonly status: "registered";
}>;
type NotRegistered = Exclude<SessionControlRegistration, {
    readonly status: "registered";
}>;
export type ControlEndpointOutcome = {
    readonly registration: Registered;
    readonly endpoint: ActiveControlEndpoint;
} | {
    readonly registration: NotRegistered;
};
export declare function registerSessionControlEndpoint(context: TuiControlContext, options: RegisterControlEndpointOptions): Promise<ControlEndpointOutcome>;
//# sourceMappingURL=session-control-endpoint.d.ts.map