*/ public function getQuota(string $root = 'INBOX'): array; /** * Get a list of mailboxes (also known as folders). * * @return MailboxInterface[] */ public function getMailboxes(): array; /** * Check that a mailbox with the given name exists. * * @param string $name Mailbox name */ public function hasMailbox(string $name): bool; /** * Get a mailbox by its name. * * @param string $name Mailbox name * * @throws MailboxDoesNotExistException If mailbox does not exist */ public function getMailbox(string $name): MailboxInterface; /** * Create mailbox. * * @throws CreateMailboxException */ public function createMailbox(string $name): MailboxInterface; /** * Delete mailbox. * * @throws DeleteMailboxException */ public function deleteMailbox(MailboxInterface $mailbox): void; }