import type { AnyParams } from "../../../types/array"; import type { ConstructorOf, Func, Mapper, Method } from "../../../types/concepts"; export declare type Operation = ApplyOperation | ConstructOperation | DefinePropertyOperation | DeletePropertyOperation | GetOperation | GetOwnPropertyDescriptorOperation | GetPrototypeOfOperation | HasOperation | IsExtensibleOperation | OwnKeysOperation | PreventExtensionsOperation | SetOperation | SetPrototypeOfOperation; interface BaseOperation { type: keyof ProxyHandler; target: T; result: unknown; } export interface ApplyOperation | Method, This, Args extends AnyParams, R> extends BaseOperation { type: "apply"; thisArg: This; argArray: Args; result: R; } export interface ConstructOperation, Args extends AnyParams, R> extends BaseOperation { type: "construct"; argArray: Args; newTarget: T; result: R; } export interface DefinePropertyOperation extends BaseOperation { type: "defineProperty"; key: K; descriptor: TypedPropertyDescriptor; result: boolean; } export interface DeletePropertyOperation extends BaseOperation { type: "deleteProperty"; key: K; result: boolean; } export interface GetOperation extends BaseOperation { type: "get"; key: K; receiver: T; result: T[K]; } export interface GetOwnPropertyDescriptorOperation extends BaseOperation { type: "getOwnPropertyDescriptor"; key: K; result: TypedPropertyDescriptor | undefined; } export interface GetPrototypeOfOperation extends BaseOperation { type: "getPrototypeOf"; result: T | null; } export interface HasOperation extends BaseOperation { type: "has"; key: K; result: K extends keyof T ? true : false; } export interface IsExtensibleOperation extends BaseOperation { type: "isExtensible"; result: boolean; } export interface OwnKeysOperation extends BaseOperation { type: "ownKeys"; result: ArrayLike; } export interface PreventExtensionsOperation extends BaseOperation { type: "preventExtensions"; result: boolean; } export interface SetOperation extends BaseOperation { type: "set"; key: K; value: T[K]; receiver: T; result: boolean; } export interface SetPrototypeOfOperation extends BaseOperation { type: "setPrototypeOf"; prototype: P; result: boolean; } export declare const createPureTrackerProxyHandler: (tracks: Operation[]) => Required>; export declare const createExpressionAnalyser: (tracks: Operation[]) => ProxyHandler; export declare const trackExpression: (expression: Mapper) => Operation[]; export {}; //# sourceMappingURL=reflect.d.ts.map