import { Main } from "@atproto/api/dist/client/types/app/bsky/richtext/facet";
type UnwrapArray<T> = T extends (infer V)[] ? V : never;
export type Facet = Main;
export type FacetFeature = UnwrapArray<Facet["features"]>;
export interface RichtextSegment {
    text: string;
    features: FacetFeature[] | undefined;
}
export declare const segmentize: (text: string, facets: Facet[] | undefined) => RichtextSegment[];
export {};
//# sourceMappingURL=facet.d.ts.map