///
import { PathLike } from 'fs';
import { Idl } from './types';
import { Options } from 'prettier';
export * from './types';
export declare class Solita {
private readonly idl;
private readonly formatCode;
private readonly formatOpts;
private readonly accountsHaveImplicitDiscriminator;
private readonly prependGeneratedWarning;
private paths;
constructor(idl: Idl, { formatCode, formatOpts, prependGeneratedWarning, }?: {
formatCode?: boolean;
formatOpts?: Options;
prependGeneratedWarning?: boolean;
});
accountFilesByType(): Map;
customFilesByType(): Map;
resolveFieldType: (typeName: string) => import("./types").IdlTypeEnum | import("./types").IdlDefinedType | null;
renderCode(): {
instructions: Record;
accounts: Record;
types: Record;
errors: string | null;
};
renderAndWriteTo(outputDir: PathLike): Promise;
private writeInstructions;
private writeAccounts;
private writeTypes;
private writeErrors;
writeMainIndex(reexports: string[]): Promise;
}