import type { RpcCommand, RpcResponse } from "./rpc-types.ts";
import type { RpcSessionLaunchProfile } from "./session-registry.ts";
import type { RouterContext } from "./session-router-context.ts";
/** `open_session.spawnedBy` must name the parent, root and task when present; the open answers `invalid_spawned_by` otherwise. */
export declare function invalidSpawnedBy(command: Extract<RpcCommand, {
    type: "open_session";
}>): boolean;
export declare function validatedOpenProfile(host: RouterContext, command: Extract<RpcCommand, {
    type: "open_session";
}>, options?: {
    readonly defaults?: boolean;
}): RpcSessionLaunchProfile | RpcResponse;
//# sourceMappingURL=session-router-open-profile.d.ts.map