import "@sanity/ui/styles.css"; import { ConfigContext, FieldDefinition, SortOrdering, StringDefinition } from "sanity"; import { ComponentType, Ref } from "react"; import { ListItem, MenuItem, StructureBuilder } from "sanity/structure"; import { SanityClient } from "@sanity/client"; type NewItemPosition = 'after' | 'before'; interface RankFieldConfig extends Partial> { type: string; newItemPosition?: NewItemPosition; } declare const orderRankField: (config: RankFieldConfig) => FieldDefinition<'string'>; declare const orderRankOrdering: SortOrdering; interface OrderableListConfig { type: string; id?: string; title?: string; icon?: ComponentType; params?: Record; filter?: string; menuItems?: MenuItem[]; createIntent?: boolean; context: ConfigContext; S: StructureBuilder; } declare function orderableDocumentListDeskItem(config: OrderableListConfig): ListItem; interface OrderableDocumentListProps { options: { type: string; client: SanityClient; filter?: string; params?: Record; currentVersion?: string; }; /** * Structure menu actions look up `actionHandlers` on the pane component * instance. Expose them via `useImperativeHandle`. */ ref?: Ref<{ actionHandlers: { showIncrements: () => void; resetOrder: () => Promise; }; }>; } declare function OrderableDocumentList({ options, ref }: OrderableDocumentListProps): import("react").JSX.Element | null; export { OrderableDocumentList, type OrderableListConfig, type RankFieldConfig, orderRankField, orderRankOrdering, orderableDocumentListDeskItem }; //# sourceMappingURL=index.d.ts.map