1import type { Tunnel } from "./worker.d.ts";
2
3export type BroadcastingStatus =
4 | { leader: true; initialLeader: boolean }
5 | { leader: false };
6
7export type HtmlTagFunction = (
8 strings: string[] | ArrayLike<string>,
9 ...values: unknown[]
10) => string;
11
12export type RenderArg<State = undefined> = {
13 html: HtmlTagFunction;
14 state: State;
15};
16
17export type WorkerOpts = {
18 forceNew?: boolean | {
19 self?: boolean;
20 dependencies?: Record<string, boolean>;
21 };
22};