import type { ParserOptions } from '@asyncapi/parser/esm/parser';
export type ResolverMeta = {
    index: number;
    schema: string;
    order: number;
    canRead: boolean | ((uri: URI, ctx: unknown) => boolean);
};
type WorkerParserOptions = Omit<ParserOptions, 'schemaParsers' | '__unstable'> & {
    __unstable?: ParserOptions['__unstable'];
};
declare const worker: {
    init(options?: WorkerParserOptions, resolverMeta?: ResolverMeta[], readDispatcher?: (index: number, uri: string) => Promise<string>): Promise<void>;
    parse(content: string, parseOptions?: Record<string, unknown>): Promise<{
        schema: import("@asyncapi/parser/esm/spec-types/v2.js").AsyncAPIObject | import("@asyncapi/parser/esm/spec-types/v3.js").AsyncAPIObject;
        diagnostics: import("@stoplight/spectral-core").ISpectralDiagnostic[];
    }>;
};
export type AsyncAPIParserWorker = typeof worker;
export {};
