export interface WorkerPayload<T> {
    data: T;
}
export interface WorkerMetadata {
    hostLocation: {
        origin?: string;
        protocol?: string;
        host?: string;
        port?: string;
        hostname?: string;
        href?: string;
    };
    /**
     * Importing these in worker script will executed the whole constant script in worker env,
     * which could resolve into different values, as well as, result in many unnecessary imports
     */
    constants: {
        chains: {
            chainIds: {
                [key: string]: number;
            };
        };
        /**
         * Worker do not have access to window.location -> so this will always be false if import
         * directly from vite constant file.
         */
        isDevelopment: boolean;
    };
}
export interface WorkerParams<T = WorkerPayload<unknown>> {
    payload: T;
    metadata: WorkerMetadata;
}
