import { Annotations } from '../../stores/class/general'; export interface SubOrganisation { id: number; name: string; annotations: Annotations; podcastCount: number; } declare function slugifySubOrganisation(subOrga: SubOrganisation): string; /** * Composable to manage suborganisation. * Allows for selecting (= focusing), unselecting, listing, etc * @param organisationId ID of the current organisation * @param slugFunc Function to slugify the suborganisation ids */ export declare const useSubOrganisations: (organisationId: string, slugFunc?: typeof slugifySubOrganisation) => { /** Currently selected/focused suborganisation */ selectSubOrganisation: (subOrganisation: SubOrganisation) => void; /** Change the currently selected/focused suborganisation */ selectedSubOrganisation: import('../../../node_modules/vue').Ref<{ id: number; name: string; annotations: Annotations; podcastCount: number; }, SubOrganisation | { id: number; name: string; annotations: Annotations; podcastCount: number; }>; /** Remove the focus on the suborganisation */ unselectSubOrganisation: () => void; /** List of available suborganisations */ subOrganisations: import('../../../node_modules/vue').Ref<{ id: number; name: string; annotations: Annotations; podcastCount: number; }[], SubOrganisation[] | { id: number; name: string; annotations: Annotations; podcastCount: number; }[]>; /** * Get a suborganisation by its ID or sluggified name * @param id Either the numeric ID or the sluggified name of the orga * @returns A promise of the matching sub organisation */ getSubOrganisation: (id: string | number) => Promise; }; export {};