import { DirectusShare } from "../../../schema/share.js"; import { ApplyQueryFields } from "../../../types/output.js"; import { Query } from "../../../types/query.js"; import { RestCommand } from "../../types.js"; //#region src/rest/commands/read/shares.d.ts type ReadShareOutput, Item extends object = DirectusShare> = ApplyQueryFields; /** * List all Shares that exist in Directus. * @param query The query parameters * @returns An array of up to limit Share objects. If no items are available, data will be an empty array. */ declare const readShares: >>(query?: TQuery) => RestCommand[], Schema>; /** * List an existing Share by primary key. * @param key The primary key of the dashboard * @param query The query parameters * @returns Returns a Share object if a valid primary key was provided. * @throws Will throw if key is empty */ declare const readShare: >>(key: DirectusShare["id"], query?: TQuery) => RestCommand, Schema>; //#endregion export { ReadShareOutput, readShare, readShares }; //# sourceMappingURL=shares.d.ts.map