import * as hookable from "hookable"; import { HookKeys, Hookable } from "hookable"; import { BirpcGroup, BirpcOptions, BirpcReturn, ChannelOptions } from "birpc"; //#region ../../node_modules/.pnpm/@vue+shared@3.5.22/node_modules/@vue/shared/dist/shared.d.ts type Prettify = { [K in keyof T]: T[K] } & {}; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never; type LooseRequired = { [P in keyof (T & Required)]: T[P] }; type IfAny = 0 extends 1 & T ? Y : N; //#endregion //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.d.ts declare enum TrackOpTypes { GET = "get", HAS = "has", ITERATE = "iterate" } declare enum TriggerOpTypes { SET = "set", ADD = "add", DELETE = "delete", CLEAR = "clear" } type UnwrapNestedRefs = T extends Ref ? T : UnwrapRefSimple; declare const ShallowReactiveMarker: unique symbol; type Primitive = string | number | boolean | bigint | symbol | undefined | null; type Builtin = Primitive | Function | Date | Error | RegExp; type EffectScheduler = (...args: any[]) => any; type DebuggerEvent = { effect: Subscriber; } & DebuggerEventExtraInfo; type DebuggerEventExtraInfo = { target: object; type: TrackOpTypes | TriggerOpTypes; key: any; newValue?: any; oldValue?: any; oldTarget?: Map | Set; }; interface DebuggerOptions { onTrack?: (event: DebuggerEvent) => void; onTrigger?: (event: DebuggerEvent) => void; } interface ReactiveEffectOptions extends DebuggerOptions { scheduler?: EffectScheduler; allowRecurse?: boolean; onStop?: () => void; } /** * Subscriber is a type that tracks (or subscribes to) a list of deps. */ interface Subscriber extends DebuggerOptions {} declare class ReactiveEffect implements Subscriber, ReactiveEffectOptions { fn: () => T; scheduler?: EffectScheduler; onStop?: () => void; onTrack?: (event: DebuggerEvent) => void; onTrigger?: (event: DebuggerEvent) => void; constructor(fn: () => T); pause(): void; resume(): void; run(): T; stop(): void; trigger(): void; get dirty(): boolean; } declare const ComputedRefSymbol: unique symbol; declare const WritableComputedRefSymbol: unique symbol; interface BaseComputedRef extends Ref { [ComputedRefSymbol]: true; /** * @deprecated computed no longer uses effect */ effect: ComputedRefImpl; } interface ComputedRef extends BaseComputedRef { readonly value: T; } interface WritableComputedRef extends BaseComputedRef { [WritableComputedRefSymbol]: true; } type ComputedGetter = (oldValue?: T) => T; type ComputedSetter = (newValue: T) => void; interface WritableComputedOptions { get: ComputedGetter; set: ComputedSetter; } /** * @private exported by @vue/reactivity for Vue core use, but not exported from * the main vue package */ declare class ComputedRefImpl implements Subscriber { fn: ComputedGetter; private readonly setter; effect: this; onTrack?: (event: DebuggerEvent) => void; onTrigger?: (event: DebuggerEvent) => void; constructor(fn: ComputedGetter, setter: ComputedSetter | undefined, isSSR: boolean); get value(): T; set value(newValue: T); } declare const RefSymbol: unique symbol; declare const RawSymbol: unique symbol; interface Ref { get value(): T; set value(_: S); /** * Type differentiator only. * We need this to be in public d.ts but don't want it to show up in IDE * autocomplete, so we use a private Symbol instead. */ [RefSymbol]: true; } declare const ShallowRefMarker: unique symbol; type ShallowRef = Ref & { [ShallowRefMarker]?: true; }; type MaybeRef = T | Ref | ShallowRef | WritableComputedRef; /** * This is a special exported interface for other packages to declare * additional types that should bail out for ref unwrapping. For example * \@vue/runtime-dom can declare it like so in its d.ts: * * ``` ts * declare module '@vue/reactivity' { * export interface RefUnwrapBailTypes { * runtimeDOMBailTypes: Node | Window * } * } * ``` */ interface RefUnwrapBailTypes {} type ShallowUnwrapRef = { [K in keyof T]: DistributeRef }; type DistributeRef = T extends Ref ? V : T; type UnwrapRef = T extends ShallowRef ? V : T extends Ref ? UnwrapRefSimple : UnwrapRefSimple; type UnwrapRefSimple = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | { [RawSymbol]?: true; } ? T : T extends Map ? Map> & UnwrapRef>> : T extends WeakMap ? WeakMap> & UnwrapRef>> : T extends Set ? Set> & UnwrapRef>> : T extends WeakSet ? WeakSet> & UnwrapRef>> : T extends ReadonlyArray ? { [K in keyof T]: UnwrapRefSimple } : T extends object & { [ShallowReactiveMarker]?: never; } ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef } : T; type WatchCallback = (value: V, oldValue: OV, onCleanup: OnCleanup) => any; type OnCleanup = (cleanupFn: () => void) => void; type WatchStopHandle = () => void; //#endregion //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.d.ts type Slot = (...args: IfAny) => VNode[]; type InternalSlots = { [name: string]: Slot | undefined; }; type Slots = Readonly; declare const SlotSymbol: unique symbol; type SlotsType = Record> = { [SlotSymbol]?: T; }; type StrictUnwrapSlotsType> = [keyof S] extends [never] ? Slots : Readonly & T; type UnwrapSlotsType> = [keyof S] extends [never] ? Slots : Readonly extends ((...args: any[]) => any) ? T[K] : Slot }>>; type RawSlots = { [name: string]: unknown; $stable?: boolean; }; declare enum SchedulerJobFlags { QUEUED = 1, PRE = 2, /** * Indicates whether the effect is allowed to recursively trigger itself * when managed by the scheduler. * * By default, a job cannot trigger itself because some built-in method calls, * e.g. Array.prototype.push actually performs reads as well (#1740) which * can lead to confusing infinite loops. * The allowed cases are component update functions and watch callbacks. * Component update functions may update child component props, which in turn * trigger flush: "pre" watch callbacks that mutates state that the parent * relies on (#1801). Watch callbacks doesn't track its dependencies so if it * triggers itself again, it's likely intentional and it is the user's * responsibility to perform recursive state mutation that eventually * stabilizes (#1727). */ ALLOW_RECURSE = 4, DISPOSED = 8 } interface SchedulerJob extends Function { id?: number; /** * flags can technically be undefined, but it can still be used in bitwise * operations just like 0. */ flags?: SchedulerJobFlags; /** * Attached by renderer.ts when setting up a component's render effect * Used to obtain component information when reporting max recursive updates. */ i?: ComponentInternalInstance; } declare function nextTick(): Promise; declare function nextTick(this: T, fn: (this: T) => R | Promise): Promise; type ComponentPropsOptions

= ComponentObjectPropsOptions

| string[]; type ComponentObjectPropsOptions

= { [K in keyof P]: Prop | null }; type Prop = PropOptions | PropType; type DefaultFactory = (props: Data) => T | null | undefined; interface PropOptions { type?: PropType | true | null; required?: boolean; default?: D | DefaultFactory | null | undefined | object; validator?(value: unknown, props: Data): boolean; } type PropType = PropConstructor | (PropConstructor | null)[]; type PropConstructor = { new (...args: any[]): T & {}; } | { (): T; } | PropMethod; type PropMethod = [T] extends [((...args: any) => any) | undefined] ? { new (): TConstructor; (): T; readonly prototype: TConstructor; } : never; type RequiredKeys = { [K in keyof T]: T[K] extends { required: true; } | { default: any; } | BooleanConstructor | { type: BooleanConstructor; } ? T[K] extends { default: undefined | (() => undefined); } ? never : K : never }[keyof T]; type OptionalKeys = Exclude>; type DefaultKeys = { [K in keyof T]: T[K] extends { default: any; } | BooleanConstructor | { type: BooleanConstructor; } ? T[K] extends { type: BooleanConstructor; required: true; } ? never : K : never }[keyof T]; type InferPropType = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{ type: null | true; }] ? any : [T] extends [ObjectConstructor | { type: ObjectConstructor; }] ? Record : [T] extends [BooleanConstructor | { type: BooleanConstructor; }] ? boolean : [T] extends [DateConstructor | { type: DateConstructor; }] ? Date : [T] extends [(infer U)[] | { type: (infer U)[]; }] ? U extends DateConstructor ? Date | InferPropType : InferPropType : [T] extends [Prop] ? unknown extends V ? keyof V extends never ? IfAny : V : V : T; /** * Extract prop types from a runtime props options object. * The extracted types are **internal** - i.e. the resolved props received by * the component. * - Boolean props are always present * - Props with default values are always present * * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}. */ type ExtractPropTypes = { [K in keyof Pick>]: O[K] extends { default: any; } ? Exclude, undefined> : InferPropType } & { [K in keyof Pick>]?: InferPropType }; type ExtractDefaultPropTypes = O extends object ? { [K in keyof Pick>]: InferPropType } : {}; /** * Vue `