/** * expose worker * * @param callback Callback function for processing the inbound data */ declare function expose(callback: (input: A) => TMessageOut): (input: A) => TMessageOut; declare function expose(callback: (input: A) => Promise): (input: A) => Promise; declare function expose(callback: (input: A, options: B) => TMessageOut): (input: A, options: B) => TMessageOut; declare function expose(callback: (input: A, options: B) => Promise): (input: A, options: B) => Promise; type MessageEventFormat = [[A] | true, [B] | true]; export { MessageEventFormat, expose };