import { Plugin } from 'vite';

declare const EPHPError: {
    readonly ERROR: 1;
    readonly WARNING: 2;
    readonly PARSE: 4;
    readonly NOTICE: 8;
    readonly CORE_ERROR: 16;
    readonly CORE_WARNING: 32;
    readonly COMPILE_ERROR: 64;
    readonly COMPILE_WARNING: 128;
    readonly USER_ERROR: 256;
    readonly USER_WARNING: 512;
    readonly USER_NOTICE: 1024;
    readonly STRICT: 2048;
    readonly RECOVERABLE_ERROR: 4096;
    readonly DEPRECATED: 8192;
    readonly USER_DEPRECATED: 16384;
    readonly ALL: 32767;
};
type EPHPError = (typeof EPHPError)[keyof typeof EPHPError];

type UsePHPConfig = {
    binary?: string;
    entry?: string | string[];
    rewriteUrl?: (requestUrl: URL) => URL | undefined;
    tempDir?: string;
    dev?: {
        errorLevels?: number;
        cleanup?: boolean;
    };
};
declare function usePHP(cfg?: UsePHPConfig): Plugin[];

export { EPHPError, type UsePHPConfig, usePHP as default };
