/** Wraps a value in a single-quoted PHP string literal. */ export declare const quotePhpString: (value: string) => string; /** Returns the host a cookie jar should scope cookies to, falling back to localhost. */ export declare const getCookieDomain: (url: string) => string; /** * Represents a raw PHP code that should not be quoted, e.g. `fopen('test.txt', 'r')`. * If it consists of multiple lines, they will be indented properly. */ export declare class Raw { value: string; constructor(value: string); } /** * Converts a JavaScript object or value into a PHP array or scalar string representation. * Handles nested arrays and objects, proper string escaping, and preserves indentation for readability. * * @example * objectToString({ foo: 'bar', baz: 'qux' }) // => "['foo' => 'bar', 'baz' => 'qux']" */ export declare function objectToString(data: unknown, level?: number): string; //# sourceMappingURL=php.d.ts.map