import type { PartialRigConfig } from "./types.js"; export interface ParsedConfigToml { /** Settings Rig does not recognize, in the order they appear, such as `settings.show_useage`. */ unknownSettings: readonly string[]; values: PartialRigConfig; } export declare function parseConfigToml(source: string): PartialRigConfig; /** * Reads a configuration document, discarding every setting Rig does not recognize and naming * what it discarded. * * An unrecognized setting is never fatal. Configuration is read before Rig has a terminal to * report anything in, so refusing to parse leaves the user at a shell prompt with nothing to * read. Rig also writes `runtime.toml` itself, so a setting Rig has since renamed is Rig's own * stale output rather than a user mistake. */ export declare function parseConfigTomlWithUnknownSettings(source: string): ParsedConfigToml;