// Generated by bin/generate-runtime-types.mjs. import type { PhpBaseModuleFactory, PhpRuntimeFactory, PhpRuntimeArgs, PhpRuntimeVersion, PhpRuntimeValue, PhpTemplateValue, PhpBinaryRuntime, PhpPathAnalysis, PhpFileNode, PhpFileStat, PhpReadFileOptions, PhpReadDirectoryOptions, PhpDirectoryEntry } from './public.d.ts'; export type * from './public.d.ts'; export declare class PhpBase extends EventTarget { constructor(phpBinLoader: Promise, args?: PhpRuntimeArgs, sapi?: string, phpSettings?: PhpRuntimeArgs); autoTransaction: boolean; transactionStarted: boolean | Promise; phpVersion?: PhpRuntimeVersion; phpArgs: PhpRuntimeArgs; queue: Array<[Function, Array, (value?: PhpRuntimeValue) => void, (reason?: object | string | number | boolean | Error) => void, boolean?]>; binary: Promise; onerror: (event?: Event) => void; onoutput: (event?: Event) => void; onready: (event?: Event) => void; inputString(byteString: string): void; input(items: Iterable): void; flush(): void; tokenize(phpCode: string): Promise; startTransaction(): Promise; commitTransaction(readOnly?: boolean): Promise; run(...args: RunArgs): Promise; exec(phpCode: string): Promise; x(fragments: TemplateStringsArray, ...values: PhpTemplateValue[]): Promise; r(fragments: TemplateStringsArray, ...values: PhpTemplateValue[]): Promise; refresh(): Promise; analyzePath(path: string): Promise; readdir(path: string, options?: PhpReadDirectoryOptions & { withFileTypes?: false }): Promise; readdir(path: string, options: PhpReadDirectoryOptions & { withFileTypes: true }): Promise; readdir(path: string, options?: PhpReadDirectoryOptions): Promise; readFile(path: string, options: PhpReadFileOptions & { encoding: 'utf8' }): Promise; readFile(path: string, options?: PhpReadFileOptions & { encoding?: 'binary' }): Promise; readFile(path: string, options?: PhpReadFileOptions): Promise; stat(path: string): Promise; mkdir(path: string): Promise; rmdir(path: string): Promise; rename(path: string, newPath: string): Promise; writeFile(path: string, data: string | ArrayBufferView, options?: object): Promise; unlink(path: string): Promise; }