/**
 * Walking an object literal in source, for the framework resolvers whose route
 * table IS an object literal.
 *
 * Vue's `routes: [{ name, path, component }]`, TanStack Router's
 * `createRoute({ path, getParentRoute, component })` and its
 * `createFileRoute('/x')({ component })` all state a route as a JavaScript
 * object, and reading one field out of a WINDOW around another is wrong in a
 * way that is silent: a Vue `name` is written above the `path` it belongs to,
 * so a window around each path hands an entry its predecessor's name — every
 * route in vue-realworld came out pointing one entry too far down.
 *
 * So each object is matched as a unit and only its own depth-1 fields are
 * read; nested objects, arrays, calls, strings and templates are stepped over
 * rather than searched. This is a scanner, not a parser: it knows brackets,
 * quotes and template interpolation, and nothing else about JavaScript.
 */
/** The index of the bracket, brace or paren closing the one at `open`, or -1. */
export declare function matchBracket(s: string, open: number): number;
/** The index of the quote closing the string or template opened at `at`, or -1. */
export declare function skipString(s: string, at: number): number;
/** Each `{…}` written directly in `[from, to)`, as its own extent. */
export declare function topLevelObjects(s: string, from: number, to: number): Generator<{
    start: number;
    end: number;
}>;
/** An object's own fields — key to its value text and where the key sits. Nested structures are stepped over. */
export declare function readFields(s: string, start: number, end: number): Map<string, {
    text: string;
    at: number;
}>;
//# sourceMappingURL=object-literal.d.ts.map