import { type SourceSpan } from "../../parse/parser.js";
import { type Modules } from "./module-registry.js";
export type Diagnostic = {
    code: "AS-FLOATING-PROMISE";
    severity: "warning";
    message: string;
    filename: string;
    line: number;
    column: number;
    span: SourceSpan;
};
export declare function AS_FLOATING_PROMISE(source: string, options?: {
    filename?: string;
    modules?: Modules;
}): Diagnostic[];
