import type { Type } from './types.js';
export interface FeatherTypeUnion {
    kind: 'union';
    types: FeatherType[];
}
export interface FeatherType {
    kind: 'type';
    name: {
        content: string;
        offset: number;
        inferred?: boolean;
    };
    of?: FeatherTypeUnion;
}
/**
 * Given a parsed feather type, create a flat array of flat types.
 * Useful for e.g. getting the offsets of all types in a union.
 * @param flattened The array collecting the flattened types
 */
export declare function flattenFeatherTypes(type: FeatherTypeUnion | FeatherType | string, flattened?: FeatherType[]): FeatherType[];
export declare function parseFeatherTypeString(typeString: string): FeatherTypeUnion;
export declare function typeToFeatherString(type: Type): string;
//# sourceMappingURL=jsdoc.feather.d.ts.map