export default createQuery;
export type QueryOptions = import("./types.js").PexResource;
export type PexQuery = QueryOptions;
declare function createQuery(ctx: any, opts?: {}): {
    class: string;
    handle: any;
    target: any;
    state: any;
    result: any;
    _begin: typeof begin;
    _end: typeof end;
    _available: typeof available;
    _dispose(): void;
};
declare function begin({ QueryState, gl }: {
    QueryState: any;
    gl: any;
}, q: any): boolean;
declare function end({ QueryState, gl }: {
    QueryState: any;
    gl: any;
}, q: any): boolean;
declare function available({ gl, QueryState }: {
    gl: any;
    QueryState: any;
}, q: any): boolean;
