export type AddQueueHandlerOutcome = { status: 'inserted'; source: string; } | { status: 'already-present'; } | { status: 'no-default-export'; } | { status: 'no-closing-brace'; }; /** * Insert `method` (a full class-method source snippet, e.g. * `" async queue(...) {...},"`) into the default-exported object in `source`. * * - `already-present`: `source` already declares an `async queue(` handler — a * Worker has a single queue() handler shared by all queue bindings, so the * caller should leave the file untouched. * - `source.length === 0`: no entrypoint yet — a brand new one is returned. * - `no-default-export`: `source` has no `export default { ... }` object to * insert into (e.g. a class-style entrypoint). * - `no-closing-brace`: an `export default {` was found but its matching `}` * could not be located (malformed source). */ export declare function addQueueHandler(source: string, method: string): AddQueueHandlerOutcome;